/* ================================================
   SGOD FILING SYSTEM — POLISHED STYLESHEET
================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green:       #2e7d32;
    --green-dark:  #1f5c54;
    --green-hover: #256628;
    --green-light: #e8f5e9;
    --blue-link:   #1b3f91;
    --gray-bg:     #f5f5f5;
    --gray-border: #d0d0d0;
    --white:       #ffffff;
    --text:        #222222;
    --text-muted:  #555555;
}

html {
    background: var(--green);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ================================================
   HEADER
================================================ */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: var(--gray-bg);
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.01em;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    margin-left: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-dark);
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

nav a:hover {
    background: #e0eded;
    border-color: #c0d8d4;
}

/* ================================================
   HERO
================================================ */

.hero {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    display: block;
}

/* ================================================
   FOOTER
================================================ */

footer {
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 80px;
    gap: 40px;
    margin: 0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-left .logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-left img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.footer-left h3 {
    font-family: 'Radley', serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.footer-left p {
    font-family: 'Radley', serif;
    font-size: 15px;
    opacity: 0.85;
}

.footer-right {
    text-align: right;
    min-width: 220px;
    max-width: 480px;   /* add this so long address wraps neatly */
}

.footer-right h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.footer-right p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.88;
    margin: 0;
    text-align: right;
}

.footer-right p span {
    text-align: right;
}

.footer-right p i {
    margin-right: 6px;
}

/* ================================================
   MODAL — SHARED BASE
================================================ */

.login-modal,
.forgot-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

/* ================================================
   LOGIN MODAL
================================================ */

.login-box {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    padding: 44px 40px 36px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.login-box h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    /*color: #1a1a1a;*/
    color: #333;
    margin-bottom: 6px;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.01em;
}

.login-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.login-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f7f0;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    padding: 11px 14px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #2e5c30;
    font-family: 'Inter', sans-serif;
}

.login-info i {
    font-size: 15px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* ================================================
   INPUT FIELDS
================================================ */

.input-field {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    display: block;
    margin-bottom: 18px;
}

.input-field::placeholder { color: #aaa; }

.input-field:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

/* ================================================
   PASSWORD FIELD
================================================ */

.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.password-container .input-field {
    margin-bottom: 0;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 15px;
    transition: color 0.2s;
    user-select: none;
}

.toggle-password:hover { color: var(--text-muted); }

/* ================================================
   BUTTONS
================================================ */

.login-btn,
.send-btn {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.login-btn:hover,
.send-btn:hover {
    background: var(--green-hover);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.22);
}

.login-btn:active,
.send-btn:active { transform: scale(0.99); }

/* ================================================
   LINKS
================================================ */

.forgot,
.back-login {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--blue-link);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: text-decoration 0.15s;
}

.forgot:hover,
.back-login:hover { text-decoration: underline; }

/* ================================================
   ERROR / SUCCESS ALERTS
================================================ */

.login-error {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.success-message {
    background: var(--green-light);
    color: var(--green-hover);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.error-message {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ================================================
   FORGOT PASSWORD MODAL — matches login size
================================================ */

.forgot-box {
    background: var(--white);
    width: 100%;
    max-width: 460px;
    padding: 44px 40px 36px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    text-align: left;
    font-size: 15px;
}

.forgot-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    text-align: center;
}

.forgot-box > p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.forgot-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 18px;
    display: block;
}

.forgot-input:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

/* ================================================
   AUTH PAGE WRAPPER (reset-password standalone page)
================================================ */

.auth-page {
    background: #f0f2f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ================================================
   RESPONSIVE — TABLET & MOBILE
================================================ */

@media (max-width: 768px) {

    /* Header */
    header {
        flex-wrap: wrap;
        padding: 12px 20px;
        gap: 10px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo h2 {
        font-size: 15px;
    }

    nav {
        gap: 0;
        margin-left: auto;
    }

    nav a {
        margin-left: 6px;
        padding: 7px 12px;
        font-size: 13px;
    }

    /* Hero */
    .hero img {
        height: 220px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 36px 24px;
        gap: 28px;
    }

    .footer-left img {
        width: 52px;
        height: 52px;
    }

    .footer-right {
        text-align: left;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .footer-right p,
    .footer-right p span {
        text-align: left;
    }

    /* Modals */
    .login-modal,
    .forgot-modal {
        padding: 16px;
    }

    .login-box,
    .forgot-box {
        max-width: 100%;
        padding: 32px 24px 28px;
        border-radius: 12px;
    }

    .login-box h2,
    .forgot-box h2 {
        font-size: 22px;
    }

    /* Standalone reset-password page */
    .auth-page {
        padding: 24px 16px;
    }
}

@media (max-width: 420px) {

    header {
        padding: 10px 16px;
    }

    .logo h2 {
        font-size: 13px;
    }

    nav a {
        margin-left: 4px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .hero img {
        height: 180px;
    }

    footer {
        padding: 28px 18px 32px;
    }

    .login-box,
    .forgot-box {
        padding: 28px 18px 24px;
    }

    .login-box h2,
    .forgot-box h2 {
        font-size: 20px;
    }

    .input-field,
    .forgot-input {
        font-size: 13px;
        padding: 10px 12px;
    }

    .login-btn,
    .send-btn {
        font-size: 14px;
        padding: 12px;
    }
}
/* ================================================
   ANIMATIONS
================================================ */

/* Homepage: slide up + fade in */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login/Forgot modal box: slide down + fade in */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section */
.hero {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Footer */
footer {
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Login modal box slides down */
.login-box {
    animation: none;
}

.login-modal.active .login-box {
    animation: slideDown 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Forgot modal box slides down */
.forgot-box {
    animation: none;
}

.forgot-modal.active .forgot-box {
    animation: slideDown 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Modal overlay fade */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.login-modal.active,
.forgot-modal.active {
    animation: fadeInOverlay 0.25s ease both;
}

/* Clickable logo title */
.logo {
    cursor: pointer;
}

.logo h2 {
    transition: color 0.18s;
}

.logo:hover h2 {
    color: var(--green-dark);
}