* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f4fbf6 0%,
            #ffffff 50%,
            #fffaf5 100%
        );

    color: #222;
}


/* =========================
   PAGE
========================= */

.auth-page {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 25px 15px;

}


/* =========================
   CARD
========================= */

.auth-card {

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    border-radius: 24px;

    padding: 34px 32px 28px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.10);

    border: 1px solid #edf2e8;

}


/* =========================
   BRAND
========================= */

.brand-area {
    text-align: center;
    margin-bottom: 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
    flex: 0 0 62px;
    margin: 0;
}

.brand-name {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
    color: #035d2d;
}

.brand-fasal {
    color: #035d2d;
}

.brand-online {
    color: #fe5a06;
}

.brand-slogan {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #035d2d;
}

.brand-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

/* =========================
   FORM
========================= */

.form-area {

    margin-top: 5px;

}


.form-area h1 {

    margin: 0;

    text-align: center;

    font-size: 25px;

    color: #222;

}


.form-intro {

    text-align: center;

    font-size: 14px;

    line-height: 1.5;

    color: #777;

    margin: 10px 0 24px;

}


label {

    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;

    color: #333;

}


/* =========================
   MOBILE INPUT
========================= */

.mobile-input {

    display: flex;

    align-items: center;

    width: 100%;

    height: 54px;

    border: 1px solid #d8ded4;

    border-radius: 12px;

    background: #fff;

    overflow: hidden;

    transition: 0.2s;

}


.mobile-input:focus-within {

    border-color: #5aaE2a;

    box-shadow:
        0 0 0 3px rgba(101, 189, 25, 0.12);

}


.country-code {

    height: 100%;

    display: flex;

    align-items: center;

    padding: 0 14px;

    font-weight: 700;

    color: #555;

    background: #f5f8f3;

    border-right: 1px solid #e1e6df;

}


.mobile-input input {

    flex: 1;

    height: 100%;

    border: 0;

    outline: 0;

    padding: 0 14px;

    font-size: 16px;

    background: transparent;

}


.mobile-input input::placeholder {

    color: #aaa;

}


/* =========================
   BUTTON
========================= */

.primary-button {

    width: 100%;

    height: 54px;

    margin-top: 18px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #39a84a,
            #087a3f
        );

    color: #fff;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(76, 185, 0, 0.24);

    transition: 0.2s;

}


.primary-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(76, 185, 0, 0.30);

}


.primary-button:active {

    transform: translateY(0);

}


/* =========================
   MESSAGE
========================= */

.message {

    margin-top: 15px;

    text-align: center;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================
   SECURITY NOTE
========================= */

.security-note {

    margin-top: 20px;

    padding: 11px 12px;

    border-radius: 10px;

    background: #f7faf5;

    text-align: center;

    color: #777;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================
   FOOTER
========================= */

.auth-footer {

    text-align: center;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

    color: #777;

    font-size: 14px;

}


.auth-footer a {

    color: #4a9f24;

    font-weight: 700;

    text-decoration: none;

}


.auth-footer a:hover {

    text-decoration: underline;

}


/* =========================
   PAGE FOOTER
========================= */

.page-footer {

    margin-top: 18px;

    font-size: 12px;

    color: #999;

    text-align: center;

}


.page-footer span {

    margin: 0 5px;

}


/* =========================
   OTP SCREEN
========================= */

#otpForm {

    margin-top: 20px;

}


#otpForm input[name="otp"] {

    width: 100%;

    height: 58px;

    border: 1px solid #d8ded4;

    border-radius: 12px;

    outline: none;

    text-align: center;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 8px;

}


#otpForm input[name="otp"]:focus {

    border-color: #5aaE2a;

    box-shadow:
        0 0 0 3px rgba(101, 189, 25, 0.12);

}


#otpForm button {

    width: 100%;

    height: 54px;

    margin-top: 18px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #39a84a,
            #087a3f
        );

    color: #fff;

    font-weight: 800;

    cursor: pointer;

}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .brand-lockup {
        gap: 8px;
    }

    .brand-logo {
        width: 280px;
        height: 52px;
        flex-basis: 52px;
    }

    .brand-name {
        font-size: 27px;
    }

    .brand-slogan {
        font-size: 15px;
    }


    .auth-page {

        padding: 15px;

    }


    .auth-card {

        padding: 28px 20px 23px;

        border-radius: 20px;

    }


    .brand-logo {

        width: 52px;

        height: 52px;

        flex-basis: 52px;

    }


    .brand-name {

        font-size: 27px;

    }


    .brand-slogan {

        font-size: 15px;

    }


    .form-area h1 {

        font-size: 23px;

    }

}

/* =========================================
   FASALTRADE FINAL BRAND LOCKUP
   ========================================= */

.brand-area {
    text-align: center;
    margin-bottom: 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.brand-lockup .brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
    flex: 0 0 62px;
    margin: 0;
}

.brand-lockup .brand-name {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
    color: #035d2d;
}

.brand-fasal {
    color: #035d2d;
}

.brand-online {
    color: #fe5a06;
}

.brand-slogan {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #035d2d;
}

.brand-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 480px) {
    .brand-lockup {
        gap: 8px;
    }

    .brand-lockup .brand-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .brand-lockup .brand-name {
        font-size: 27px;
    }

    .brand-slogan {
        font-size: 15px;
    }
}


/* FasalTrade brand palette — matched to official logo */
:root{--ft-green:#035d2d;--ft-green-2:#087a3f;--ft-orange:#fe5a06;--ft-orange-2:#ff7a18;--ft-light:#f4fbf6;--ft-warm:#fff8f1;}
.ft-accent,.brand-accent{color:var(--ft-orange);}


/* =========================================================
   FASALTRADE LOGO-ONLY BRANDING — FINAL
   The supplied FasalTrade logo is the complete brand mark.
   Do not display separate Fasal / Trade / Online text.
   ========================================================= */

.brand-area {
    width: 100%;
    text-align: center;
    margin-bottom: 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
}

.brand-lockup .brand-logo,
.brand-logo {
    width: 320px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex: 0 1 auto;
    margin: 0 auto;
}

/* Prevent old duplicate text branding from appearing */
.brand-name,
.brand-fasal,
.brand-online,
.brand-trade {
    display: none !important;
}

/* The supplied logo already contains the brand message */
.brand-slogan,
.brand-subtitle {
    display: none !important;
}

@media (max-width: 480px) {
    .brand-area {
        margin-bottom: 24px;
    }

    .brand-lockup .brand-logo,
    .brand-logo {
        width: 205px;
        height: auto;
        max-width: 100%;
    }
}
