/* ========================= */
/* ✅ Brand Colors */
/* ========================= */

:root {
    --brand-navy: #0f172a;
    --brand-navy-light: #1e293b;
    --brand-orange: #f97316;
    --brand-orange-dark: #ea580c;
}

/* ========================= */
/* ✅ Background */
/* ========================= */

body.auth-page {
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: url('/images/bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
}

body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,23,42,0.9),
        rgba(249,115,22,0.75)
    );
    z-index: 0;
}

/* ========================= */
/* ✅ Glass Card */
/* ========================= */

.auth-card {
    position: relative;
    width: min(420px, 100%);
    padding: 45px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    color: #fff;
    animation: fadeIn 0.6s ease-in-out;
    z-index: 1;
    overflow-wrap: anywhere;
}

.auth-card h4 {
    line-height: 1.6;
}

/* ========================= */
/* ✅ Inputs */
/* ========================= */

.auth-card input {
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    min-height: 46px;
    font-size: 1rem;
}

.auth-card input::placeholder {
    color: #eee;
}

.auth-card input[data-latin-input] {
    direction: ltr;
    text-align: left;
}

.auth-card input:focus {
    background: rgba(255,255,255,0.35);
    box-shadow: none;
}

/* ========================= */
/* ✅ Button */
/* ========================= */

.auth-card .btn-auth {
    background: var(--brand-orange) !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 14px;
    border: none;
    transition: 0.2s ease;
    min-height: 46px;
    font-size: 1rem;
}

.auth-card .btn-auth:hover {
    background: var(--brand-orange-dark) !important;
    transform: translateY(-2px);
}

/* ✅ جلوگیری از سفید شدن متن */
.auth-card .btn-auth:focus,
.auth-card .btn-auth:active,
.auth-card .btn-auth:focus-visible {
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* ========================= */
/* ✅ Logo */
/* ========================= */

.auth-logo {
    width: 70px;
    max-width: 100%;
}

.auth-card form > .small a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 575.98px) {
    body.auth-page {
        align-items: flex-start;
        padding: 18px 14px;
    }

    .auth-card {
        width: 100%;
        margin-top: 8vh;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .auth-logo {
        width: 84px;
    }

    .auth-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem !important;
    }

    .auth-card .form-label,
    .auth-card .small,
    .auth-card .form-text {
        font-size: .95rem;
    }

    .auth-card input,
    .auth-card .btn-auth {
        min-height: 52px;
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    body.auth-page {
        padding-inline: 10px;
    }

    .auth-card {
        padding: 24px 16px;
    }
}

/* ========================= */
/* ✅ Animation */
/* ========================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
