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

.authPage {
    width: 100%;
    min-height: calc(100vh - 86px);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 91, 0, 0.08), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255, 91, 0, 0.06), transparent 26%),
        #fafafa;
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 0;
}

.authContainer {
    width: min(86%, 1250px);
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 70px;
    align-items: center;
}

/* ============================= */
/* LEFT SIDE */
/* ============================= */

.authInfo {
    min-width: 0;
}

.authLogo {
    display: inline-flex;
    color: #111827;
    text-decoration: none;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 42px;
}

.authLogo span {
    color: #ff5b00;
}

.authBadge {
    width: fit-content;
    height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
    border: 1px solid rgba(255, 91, 0, 0.13);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 22px;
}

.authInfo h1 {
    max-width: 680px;
    color: #111827;
    font-size: clamp(44px, 5vw, 74px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -2.8px;
    margin-bottom: 24px;
}

.authInfo h1 span {
    color: #ff5b00;
    display: block;
}

.authInfo p {
    max-width: 560px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 600;
    margin-bottom: 30px;
}

.authFeatures {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.authFeatures div {
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 800;
}

.authFeatures i {
    color: #ff5b00;
}

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

.authCard {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.authCardHeader {
    margin-bottom: 28px;
}

.authCardHeader h2 {
    color: #111827;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.authCardHeader p {
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

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

.inputRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.formGroup {
    position: relative;
    margin-bottom: 18px;
}

.formGroup input {
    width: 100%;
    height: 56px;
    border-radius: 15px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    outline: none;
    background: #f8f8f8;
    color: #111827;
    padding: 18px 48px 0 16px;
    font-size: 15px;
    font-weight: 800;
    transition: 0.22s ease;
}

.formGroup span {
    position: absolute;
    left: 16px;
    top: 19px;
    color: #8b8f98;
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
    transition: 0.18s ease;
}

.formGroup i {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    transition: 0.18s ease;
}

.formGroup input:focus,
.formGroup input:valid {
    background: #fff;
    border-color: rgba(255, 91, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 91, 0, 0.09);
}

.formGroup input:focus ~ span,
.formGroup input:valid ~ span {
    top: 8px;
    font-size: 11px;
    color: #ff5b00;
}

.formGroup input:focus ~ i,
.formGroup input:valid ~ i {
    color: #ff5b00;
}

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

.authSubmit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 15px;
    background: #ff5b00;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 16px 32px rgba(255, 91, 0, 0.24);
    transition: 0.22s ease;
}

.authSubmit:hover {
    background: #e85200;
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(255, 91, 0, 0.30);
}

.authBottom {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 7px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.authBottom a {
    color: #ff5b00;
    text-decoration: none;
    font-weight: 900;
}

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

.authMessage {
    width: 100%;
    margin-top: 16px;
}

.authCard #registerMessage,
.authCard #loginMessage,
.authCard #forgotMessage,
.authCard #resetMessage {
    display: none !important;
    position: relative !important;
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    max-height: 80px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-radius: 13px !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    box-shadow: none !important;
}

.authCard #registerMessage.show,
.authCard #loginMessage.show,
.authCard #forgotMessage.show,
.authCard #resetMessage.show {
    display: flex !important;
}

.authCard #registerMessage.success,
.authCard #loginMessage.success,
.authCard #forgotMessage.success,
.authCard #resetMessage.success {
    background: rgba(22, 163, 74, 0.10) !important;
    color: #15803d !important;
    border: 1px solid rgba(22, 163, 74, 0.18) !important;
}

.authCard #registerMessage.error,
.authCard #loginMessage.error,
.authCard #forgotMessage.error,
.authCard #resetMessage.error {
    background: rgba(220, 38, 38, 0.10) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.18) !important;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1050px) {
    .authContainer {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .authInfo {
        text-align: center;
    }

    .authLogo,
    .authBadge,
    .authFeatures div {
        margin-left: auto;
        margin-right: auto;
    }

    .authInfo h1,
    .authInfo p {
        margin-left: auto;
        margin-right: auto;
    }

    .authFeatures {
        align-items: center;
    }

    .authCard {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .authPage {
        padding: 34px 0;
    }

    .authContainer {
        width: 92%;
    }

    .authInfo h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .authInfo p {
        font-size: 16px;
    }

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

    .inputRow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .authBottom {
        flex-direction: column;
        align-items: center;
    }
}