/* =====================================================
   FLEXI COMMERCE
   LOGIN + REGISTER
   Clean / Responsive / Polished
===================================================== */


/* =====================================================
   GLOBAL RESET — ONLY LOGIN / REGISTER
===================================================== */

.fc-login-wrapper,
.fc-register-wrapper,
.fc-login-wrapper *,
.fc-register-wrapper *,
.fc-login-wrapper *::before,
.fc-login-wrapper *::after,
.fc-register-wrapper *::before,
.fc-register-wrapper *::after {
    box-sizing: border-box;
}


/* =====================================================
   PAGE WRAPPERS
===================================================== */

.fc-login-wrapper,
.fc-register-wrapper {
    width: 100%;
    min-height: 600px;

    margin: 0;
    padding: 60px 20px 80px;

    background: #f6f8f7;

    color: #202a26;

    font-family: inherit;

    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   CARD
===================================================== */

.fc-login-card,
.fc-register-card {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;
    padding: 42px;

    background: #ffffff;

    border: 1px solid #e1e8e4;
    border-radius: 22px;

    box-shadow:
        0 10px 35px rgba(20, 40, 32, 0.06);
}


/* =====================================================
   HEADER
===================================================== */

.fc-login-header,
.fc-register-header {
    width: 100%;

    margin: 0 0 30px;

    text-align: left;
}


.fc-login-header h1,
.fc-register-header h1 {
    margin: 0 0 10px;

    color: #17221e;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.02em;
}


.fc-login-header p,
.fc-register-header p {
    margin: 0;

    color: #69756f;

    font-size: 15px;
    line-height: 1.7;
}


/* =====================================================
   FORM
===================================================== */

.fc-login-form,
.fc-register-form {
    width: 100%;

    margin: 0;
}


/* =====================================================
   FORM FIELD
===================================================== */

.fc-form-field {
    width: 100%;

    margin: 0 0 22px;
}


.fc-form-field > label {
    display: block;

    margin: 0 0 8px;

    color: #26332e;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}


/* =====================================================
   INPUTS
===================================================== */

.fc-login-form input[type="text"],
.fc-login-form input[type="email"],
.fc-login-form input[type="password"],
.fc-login-form input[type="tel"],
.fc-register-form input[type="text"],
.fc-register-form input[type="email"],
.fc-register-form input[type="password"],
.fc-register-form input[type="tel"] {
    display: block;

    width: 100%;
    height: 52px;

    margin: 0;
    padding: 0 15px;

    border: 1px solid #cfd9d4;
    border-radius: 11px;

    background: #ffffff;

    color: #202a26;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;

    outline: none;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.fc-login-form input[type="text"]:hover,
.fc-login-form input[type="email"]:hover,
.fc-login-form input[type="password"]:hover,
.fc-login-form input[type="tel"]:hover,
.fc-register-form input[type="text"]:hover,
.fc-register-form input[type="email"]:hover,
.fc-register-form input[type="password"]:hover,
.fc-register-form input[type="tel"]:hover {
    border-color: #aebdb6;
}


.fc-login-form input[type="text"]:focus,
.fc-login-form input[type="email"]:focus,
.fc-login-form input[type="password"]:focus,
.fc-login-form input[type="tel"]:focus,
.fc-register-form input[type="text"]:focus,
.fc-register-form input[type="email"]:focus,
.fc-register-form input[type="password"]:focus,
.fc-register-form input[type="tel"]:focus {
    border-color: #0f513f;

    box-shadow:
        0 0 0 3px rgba(15, 81, 63, 0.10);

    background: #ffffff;
}


/* =====================================================
   PASSWORD FIELD
===================================================== */

.fc-password-field {
    position: relative;

    display: block;

    width: 100%;
}


.fc-password-field input[type="password"],
.fc-password-field input[type="text"] {
    width: 100%;

    padding-right: 54px;
}


/* =====================================================
   PASSWORD SHOW / HIDE BUTTON
===================================================== */

.fc-password-toggle {
    position: absolute;

    top: 50%;
    right: 6px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;

    padding: 0;

    border: 0 !important;
    border-radius: 9px;

    background: transparent !important;

    color: #65736c !important;

    font-family: inherit;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.fc-password-toggle:hover {
    background: #edf5f1 !important;

    color: #0f513f !important;
}


.fc-password-toggle:active {
    background: #e3eee9 !important;
}


.fc-password-toggle:focus-visible {
    outline: 2px solid rgba(15, 81, 63, 0.35);

    outline-offset: 1px;
}


/* =====================================================
   LOGIN OPTIONS
===================================================== */

.fc-login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    width: 100%;

    margin: -2px 0 24px;
}


/* =====================================================
   REMEMBER ME
===================================================== */

.fc-remember-me {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 0;

    color: #59655f;

    font-size: 13px;
    line-height: 1.4;

    cursor: pointer;
}


.fc-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #0f513f;

    cursor: pointer;
}


/* =====================================================
   FORGOT PASSWORD
===================================================== */

.fc-forgot-password {
    display: inline-block;

    color: #0f513f !important;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


.fc-forgot-password:hover {
    color: #0a3e30 !important;

    opacity: 0.85;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.fc-login-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    margin: 0;
    padding: 13px 20px;

    border: 1px solid #0f513f !important;
    border-radius: 11px;

    background: #0f513f !important;

    color: #ffffff !important;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(15, 81, 63, 0.16);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.fc-login-button:hover {
    background: #0b4435 !important;

    border-color: #0b4435 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(15, 81, 63, 0.22);
}


.fc-login-button:active {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(15, 81, 63, 0.14);
}


/* =====================================================
   REGISTER SUBMIT BUTTON
===================================================== */

.fc-register-submit {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    margin: 6px 0 0;
    padding: 13px 20px;

    border: 1px solid #0f513f !important;
    border-radius: 11px;

    background: #0f513f !important;

    color: #ffffff !important;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(15, 81, 63, 0.16);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.fc-register-submit:hover {
    background: #0b4435 !important;

    border-color: #0b4435 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(15, 81, 63, 0.22);
}


.fc-register-submit:active {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(15, 81, 63, 0.14);
}


.fc-login-button.is-loading,
.fc-register-submit.is-loading {
    opacity: 0.75;

    cursor: wait;
}


/* =====================================================
   DIVIDER
===================================================== */

.fc-login-divider {
    display: flex;

    align-items: center;

    width: 100%;

    margin: 30px 0;
}


.fc-login-divider::before,
.fc-login-divider::after {
    content: "";

    flex: 1 1 auto;

    height: 1px;

    background: #e3e9e6;
}


.fc-login-divider span {
    flex: 0 0 auto;

    margin: 0 14px;

    color: #8a9690;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.08em;
}


/* =====================================================
   LOGIN REGISTER SECTION
===================================================== */

.fc-login-register {
    width: 100%;

    margin: 0;

    text-align: center;
}


.fc-login-register p {
    margin: 0 0 13px;

    color: #69756f;

    font-size: 14px;
    line-height: 1.5;
}


/* =====================================================
   CREATE ACCOUNT LINK
===================================================== */

.fc-register-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    padding: 12px 20px;

    border: 1px solid #0f513f;
    border-radius: 11px;

    background: #ffffff;

    color: #0f513f !important;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.fc-register-button:hover {
    background: #0f513f;

    border-color: #0f513f;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(15, 81, 63, 0.14);
}


.fc-register-button:active {
    transform: translateY(0);

    box-shadow: none;
}


/* =====================================================
   GUEST INFORMATION
===================================================== */

.fc-login-guest-info,
.fc-register-guest-info {
    width: 100%;

    margin: 28px 0 0;
    padding: 18px 20px;

    border: 1px solid #e4eae7;
    border-radius: 13px;

    background: #f8faf9;
}


.fc-login-guest-info strong,
.fc-register-guest-info strong {
    display: block;

    margin: 0 0 6px;

    color: #26332e;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}


.fc-login-guest-info p,
.fc-register-guest-info p {
    margin: 0;

    color: #738079;

    font-size: 13px;
    line-height: 1.65;
}


/* =====================================================
   REGISTER TERMS
===================================================== */

.fc-register-terms {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    width: 100%;

    margin: 2px 0 20px;
}


.fc-register-terms input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 2px 0 0;

    accent-color: #0f513f;

    cursor: pointer;
}


.fc-register-terms label {
    margin: 0;

    color: #68746e;

    font-size: 13px;
    line-height: 1.6;

    cursor: pointer;
}


.fc-register-terms a {
    color: #0f513f !important;

    font-weight: 600;

    text-decoration: none;
}


.fc-register-terms a:hover {
    text-decoration: underline;
}


/* =====================================================
   REGISTER PAGE — LOGIN BUTTON
===================================================== */

.fc-register-login {
    width: 100%;

    margin: 30px 0 0;

    text-align: center;
}


.fc-register-login p {
    margin: 0 0 12px;

    color: #69756f;

    font-size: 14px;
    line-height: 1.5;
}


.fc-register-login a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    padding: 12px 20px;

    border: 1px solid #0f513f;
    border-radius: 11px;

    background: #ffffff;

    color: #0f513f !important;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.fc-register-login a:hover {
    background: #0f513f;

    border-color: #0f513f;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(15, 81, 63, 0.14);
}


.fc-register-login a:active {
    transform: translateY(0);

    box-shadow: none;
}

/* =====================================================
   ERROR — GENERAL
===================================================== */

.fc-login-errors,
.fc-register-errors {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;

    margin: 0 0 22px;
}


/* =====================================================
   ERROR — COMMON
===================================================== */

.fc-login-error,
.fc-register-error,
.fc-login-field-error,
.fc-register-field-error {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

    margin: 0;

    padding: 12px 14px;

    border: 1px solid #efc5c5;
    border-radius: 10px;

    background: #fff7f7;

    color: #a32b2b;

    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   ERROR ICON
===================================================== */

.fc-login-error-icon,
.fc-register-error-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    margin-top: 1px;

    border-radius: 50%;

    background: #d84b4b;

    color: #ffffff;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}


/* =====================================================
   ERROR MESSAGE
===================================================== */

.fc-login-error-message,
.fc-register-error-message {
    flex: 1 1 auto;

    color: inherit;
}


/* =====================================================
   FIELD ERROR STATE
===================================================== */

.fc-form-field.has-error
.fc-login-form input,
.fc-form-field.has-error
.fc-register-form input {
    border-color: #d95353;
}


.fc-form-field.has-error
.fc-login-form input:focus,
.fc-form-field.has-error
.fc-register-form input:focus {
    border-color: #c43f3f;

    box-shadow:
        0 0 0 3px rgba(217, 83, 83, 0.10);
}


/* =====================================================
   REGISTER / LOGIN FIELD ERROR
===================================================== */

.fc-login-field-error,
.fc-register-field-error {
    margin-top: 8px;

    padding: 9px 11px;

    border-radius: 8px;

    font-size: 12px;
}


/* =====================================================
   REGISTER FIELD ERROR ICON
===================================================== */

.fc-register-field-error
.fc-register-error-icon {
    width: 18px;
    height: 18px;

    font-size: 11px;
}


/* =====================================================
   SUCCESS / INFO
===================================================== */

.fc-login-success,
.fc-register-success {
    width: 100%;

    margin: 0 0 22px;

    padding: 12px 14px;

    border: 1px solid #bfdfd1;
    border-radius: 10px;

    background: #f1faf5;

    color: #176344;

    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   GENERIC LINKS INSIDE AUTH AREA
===================================================== */

.fc-login-wrapper a,
.fc-register-wrapper a {
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.fc-login-wrapper a:focus-visible,
.fc-register-wrapper a:focus-visible,
.fc-login-wrapper button:focus-visible,
.fc-register-wrapper button:focus-visible,
.fc-login-wrapper input:focus-visible,
.fc-register-wrapper input:focus-visible {
    outline: 3px solid rgba(15, 81, 63, 0.20);

    outline-offset: 2px;
}


/* =====================================================
   MOBILE — TABLET
===================================================== */

@media (max-width: 768px) {

    .fc-login-wrapper,
    .fc-register-wrapper {
        min-height: 500px;

        padding: 32px 15px 55px;
    }


    .fc-login-card,
    .fc-register-card {
        max-width: 100%;

        padding: 30px 24px;

        border-radius: 18px;
    }


    .fc-login-header,
    .fc-register-header {
        margin-bottom: 26px;
    }


    .fc-login-header h1,
    .fc-register-header h1 {
        font-size: 30px;
    }


    .fc-login-header p,
    .fc-register-header p {
        font-size: 14px;
    }


    .fc-login-options {
        gap: 12px;
    }

}


/* =====================================================
   MOBILE — SMALL
===================================================== */

@media (max-width: 480px) {

    .fc-login-wrapper,
    .fc-register-wrapper {
        padding: 20px 12px 45px;
    }


    .fc-login-card,
    .fc-register-card {
        padding: 26px 20px;

        border-radius: 16px;
    }


    .fc-login-header,
    .fc-register-header {
        margin-bottom: 24px;
    }


    .fc-login-header h1,
    .fc-register-header h1 {
        font-size: 27px;
    }


    .fc-login-header p,
    .fc-register-header p {
        font-size: 13px;
        line-height: 1.6;
    }


    .fc-form-field {
        margin-bottom: 19px;
    }


    .fc-form-field > label {
        font-size: 13px;
    }


    .fc-login-form input[type="text"],
    .fc-login-form input[type="email"],
    .fc-login-form input[type="password"],
    .fc-login-form input[type="tel"],
    .fc-register-form input[type="text"],
    .fc-register-form input[type="email"],
    .fc-register-form input[type="password"],
    .fc-register-form input[type="tel"] {
        height: 50px;

        font-size: 14px;
    }


    .fc-password-toggle {
        width: 40px;
        height: 40px;

        right: 5px;
    }


    .fc-login-options {
        flex-wrap: wrap;

        align-items: center;
    }


    .fc-forgot-password {
        margin-left: auto;
    }


    .fc-login-button,
    .fc-register-submit,
    .fc-register-button {
        min-height: 50px;
    }


    .fc-login-divider {
        margin: 26px 0;
    }


    .fc-login-guest-info,
    .fc-register-guest-info {
        padding: 16px;

        margin-top: 24px;
    }


    .fc-register-terms {
        gap: 8px;
    }


    .fc-register-terms label {
        font-size: 12px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 360px) {

    .fc-login-card,
    .fc-register-card {
        padding: 23px 16px;
    }


    .fc-login-header h1,
    .fc-register-header h1 {
        font-size: 25px;
    }


    .fc-login-options {
        display: block;
    }


    .fc-forgot-password {
        display: block;

        margin-top: 10px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .fc-login-wrapper *,
    .fc-register-wrapper *,
    .fc-login-wrapper *::before,
    .fc-login-wrapper *::after,
    .fc-register-wrapper *::before,
    .fc-register-wrapper *::after {
        transition: none !important;

        animation: none !important;
    }

}