/* =========================================
   ADMIN LOGIN
========================================= */

.adminLoginPage {
    min-height: calc(100vh - 180px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px 18px;
}

.adminLoginCard {
    width: 100%;
    max-width: 480px;

    position: relative;
    overflow: hidden;

    padding: 34px;

    border-radius: 30px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfb 100%
        );

    border: 1px solid rgba(7, 51, 36, .08);

    box-shadow:
        0 26px 70px rgba(0, 0, 0, .10);
}

.adminLoginCard::before {
    content: "";

    position: absolute;
    inset: 0 0 auto 0;

    height: 8px;

    background:
        linear-gradient(
            90deg,
            #03291f 0%,
            #0b5a38 60%,
            #d6f5e4 100%
        );
}

.adminLoginCard__brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 30px;
}

.adminLoginCard__brand img {
    width: 54px;
    height: 54px;

    object-fit: contain;

    filter:
        drop-shadow(0 10px 18px rgba(3, 41, 31, .14));
}

.adminLoginCard__brand div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adminLoginCard__brand span {
    color: #6b7b73;

    font-size: 12px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.adminLoginCard__brand strong {
    color: #05281d;

    font-size: 20px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: -.04em;
}

.adminLoginCard__head {
    margin-bottom: 26px;
}

.adminLoginCard__head span {
    display: inline-flex;

    margin-bottom: 12px;
    padding: 7px 11px;

    border-radius: 999px;

    background: #edf7f1;
    color: #0b5a38;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.adminLoginCard__head h1 {
    margin: 0 0 12px;

    color: #05281d;

    font-size: 32px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: -.055em;
}

.adminLoginCard__head p {
    margin: 0;

    color: #64746d;

    font-size: 14px;
    line-height: 1.7;
}

.adminLoginAlert {
    margin-bottom: 20px;
    padding: 14px 16px;

    border-radius: 16px;

    background: #fff1f2;
    color: #9f1239;

    border: 1px solid rgba(159, 18, 57, .12);

    font-size: 13px;
    font-weight: 800;
}

.adminLoginAlert--success {
    background: #ecfdf5;
    color: #065f46;

    border-color: rgba(6, 95, 70, .12);
}

.adminLoginAlert a {
    color: inherit;
    font-weight: 950;
}

.adminLoginForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adminLoginForm__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adminLoginForm__field label {
    color: #4b5f56;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .05em;
    text-transform: uppercase;
}

.adminLoginForm__field input {
    height: 52px;

    padding: 0 16px;

    border-radius: 16px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, .10);

    color: #0f172a;

    font-size: 14px;
    font-weight: 650;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.adminLoginForm__field input::placeholder {
    color: #9ca3af;
}

.adminLoginForm__field input:focus {
    outline: none;

    border-color: rgba(11, 90, 56, .65);

    box-shadow:
        0 0 0 4px rgba(11, 90, 56, .08);

    transform: translateY(-1px);
}

.adminLoginForm__submit {
    height: 54px;

    margin-top: 8px;

    border: none;
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #03291f 0%,
            #0b5a38 100%
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 950;

    cursor: pointer;

    box-shadow:
        0 14px 28px rgba(3, 41, 31, .20);

    transition:
        transform .2s ease,
        filter .2s ease;
}

.adminLoginForm__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.adminLoginCard__footer {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid rgba(7, 51, 36, .08);
}

.adminLoginCard__footer a {
    color: #0b5a38;

    text-decoration: none;

    font-size: 13px;
    font-weight: 900;
}

.adminLoginCard__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .adminLoginPage {
        padding: 28px 14px;
        align-items: flex-start;
    }

    .adminLoginCard {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .adminLoginCard__head h1 {
        font-size: 28px;
    }
}

/* =========================================================
   Customer form validation
   ========================================================= */

.customerAuthForm input.is-invalid {
    border-color: #d97706 !important;
    background: #fffaf3 !important;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, .08) !important;
}

.customerAuthForm input.is-valid {
    border-color: #c8a97e !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.customerAuthForm .field-error {
    display: block;
    margin-top: 4px;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.customerAuthForm input.is-valid {
    border-color: #c8a97e !important;
    background: #fffdf9;
}