/* =========================================================
   FM COLLECTIONS — CUSTOMER LOGIN PAGE
   File: public/css/auth-login.css
========================================================= */


/* =========================================================
   FORM ROOT
========================================================= */

.customer-login-form {
    width: 100%;
}


/* =========================================================
   ALERT
========================================================= */

.customer-login-alert {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: flex-start;

    margin-bottom: 22px;
    padding: 16px 17px;

    border: 1px solid #fecaca;
    border-radius: 13px;

    color: #991b1b;
    background: #fef2f2;
}

.customer-login-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid #fecaca;
    border-radius: 50%;

    color: #dc2626;
    background: #ffffff;

    font-size: 16px;
}

.customer-login-alert strong {
    display: block;

    margin-bottom: 4px;

    color: #991b1b;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
}

.customer-login-alert p {
    margin: 0;

    color: #b91c1c;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   FIELD
========================================================= */

.customer-login-field {
    width: 100%;
    margin-bottom: 19px;
}

.customer-login-label {
    display: block;

    margin-bottom: 8px;

    color: #0f172a;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 850;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.customer-login-input-wrapper {
    position: relative;

    width: 100%;
}

.customer-login-input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 14px;

    z-index: 2;

    color: #94a3b8;

    font-size: 15px;

    transform: translateY(-50%);
}


/* =========================================================
   CONTROL
========================================================= */

.customer-login-control {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 50px;

    padding: 12px 15px 12px 43px;

    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;

    color: #0f172a;
    background: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.customer-login-control:hover {
    border-color: #aebdcd;
}

.customer-login-control:focus {
    border-color: #2e7d32;

    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.11);
}

.customer-login-control::placeholder {
    color: #94a3b8;
}

.customer-login-control.is-invalid {
    border-color: #dc2626;
    background: #fffafa;
}

.customer-login-password-control {
    padding-right: 48px;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.customer-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 9px;

    color: #64748b;
    background: transparent;

    font-size: 16px;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.customer-login-password-toggle:hover {
    color: #166534;
    background: #f0fdf4;
}

.customer-login-password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}


/* =========================================================
   FIELD ERROR
========================================================= */

.customer-login-field-error {
    display: block;

    margin-top: 7px;

    color: #dc2626;

    font-size: 10px;
    line-height: 1.5;
    font-weight: 750;
}


/* =========================================================
   OPTIONS ROW
========================================================= */

.customer-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin: 2px 0 23px;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.customer-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #475569;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;

    cursor: pointer;
}

.customer-login-remember input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #2e7d32;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.customer-login-forgot-link {
    color: #166534;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 850;
    text-decoration: none;

    transition: color 0.2s ease;
}

.customer-login-forgot-link:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.customer-login-forgot-link.is-disabled {
    color: #94a3b8;

    cursor: not-allowed;
    text-decoration: none;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.customer-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 49px;

    padding: 12px 18px;

    border: 0;
    border-radius: 11px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2e7d32,
            #166534
        );

    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(46, 125, 50, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.customer-login-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(46, 125, 50, 0.25);
}

.customer-login-submit:active {
    transform: translateY(0);
}

.customer-login-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   REGISTER SECTION
========================================================= */

.customer-login-register {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 21px;
    padding-top: 19px;

    border-top: 1px solid #e8edf3;

    color: #64748b;

    font-size: 12px;
    line-height: 1.5;
}

.customer-login-register a {
    color: #166534;

    font-weight: 900;
    text-decoration: none;
}

.customer-login-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.customer-login-shopping {
    margin-top: 17px;

    text-align: center;
}

.customer-login-shopping a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.customer-login-shopping a:hover {
    color: #166534;
    transform: translateX(-2px);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.customer-login-form a:focus-visible,
.customer-login-form button:focus-visible,
.customer-login-form input:focus-visible {
    outline: 3px solid rgba(46, 125, 50, 0.2);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
    .customer-login-alert {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .customer-login-alert-icon {
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {
    .customer-login-field {
        margin-bottom: 17px;
    }

    .customer-login-options {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 21px;
    }

    .customer-login-forgot-link {
        align-self: flex-start;
    }

    .customer-login-submit {
        min-height: 48px;
    }

    .customer-login-register {
        align-items: center;
        flex-direction: column;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .customer-login-control {
        min-height: 48px;

        font-size: 13px;
    }

    .customer-login-submit {
        font-size: 12px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .customer-login-form *,
    .customer-login-form *::before,
    .customer-login-form *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {
    .customer-login-submit,
    .customer-login-register,
    .customer-login-shopping,
    .customer-login-password-toggle {
        display: none;
    }
}