/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo-icon {
    height: 40px;
    width: 40px;
    padding: 5px;
    background: linear-gradient(135deg, #c44536, #d95f4e);
    border-radius: 10px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.navbar-logo-text {
    height: 40px;
}

/* ── Page & background ────────────────────────────────── */
body {
    font-family: 'Raleway', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    padding-top: 65px;
    position: relative;
}

.auth-bg-glow {
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(ellipse at 70% 20%, rgba(196, 69, 54, 0.09) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
}

/* ── Split layout ─────────────────────────────────────── */
.auth-split {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ── Left brand panel ─────────────────────────────────── */
.auth-panel {
    width: 420px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.015);
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-panel::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(196, 69, 54, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.auth-panel-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.75rem;
}

.auth-panel-icon {
    height: 42px;
    width: 42px;
    background: linear-gradient(135deg, #c44536, #d95f4e);
    border-radius: 11px;
    padding: 7px;
    object-fit: contain;
}

.auth-panel-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.auth-panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.75rem;
}

.auth-panel-title span {
    background: linear-gradient(135deg, #c44536, #e07b6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-panel-desc {
    color: #9a9a9a;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.auth-panel-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-panel-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: #c8c8c8;
}

.auth-panel-features li .feat-icon {
    width: 34px;
    height: 34px;
    background: rgba(196, 69, 54, 0.1);
    border: 1px solid rgba(196, 69, 54, 0.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c44536;
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* ── Right form side ──────────────────────────────────── */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

/* ── Auth Card ────────────────────────────────────────── */
.auth-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.auth-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(196, 69, 54, 0.1);
    border: 1px solid rgba(196, 69, 54, 0.22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c44536;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: #a0a0a0;
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ── Form Controls ────────────────────────────────────── */
.form-label {
    color: #9a9a9a;
    font-weight: 500;
    font-size: 0.83rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-control {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    font-size: 0.93rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    background: #0f0f0f;
    border-color: #c44536;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.18);
}

.form-control::placeholder {
    color: #3e3e3e;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #c44536;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d95f4e;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c44536;
    background: linear-gradient(135deg, #c44536, #d95f4e);
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(196, 69, 54, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 69, 54, 0.45);
}

.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.4);
}

/* ── Divider ──────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: #5a5a5a;
}

/* ── Links ────────────────────────────────────────────── */
.auth-link {
    color: #c44536;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #d95f4e;
    text-decoration: underline;
}

/* ── Alerts ───────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.88rem;
}

/* ── Password toggle ──────────────────────────────────── */
.password-input-container {
    position: relative;
}

.password-input-container .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a4a4a;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: #c44536;
}

.password-toggle.fa-eye-slash {
    color: #c44536;
}

/* ── Misc ─────────────────────────────────────────────── */
small.form-text {
    color: #5a5a5a;
    font-size: 0.78rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 992px) {
    .auth-panel {
        width: 340px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .auth-panel {
        display: none;
    }

    .auth-form-side {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }

    .navbar .btn-link {
        font-size: 0;
        padding: 0.5rem;
        width: 40px;
    }

    .navbar .btn-link i {
        font-size: 1.25rem;
    }

    .navbar-logo-text {
        height: 24px !important;
    }

    .navbar-logo-icon {
        height: 32px !important;
    }
}
