.auth-shell {
    --auth-ink: #1f2937;
    --auth-muted: #5b6473;
    --auth-accent: #d32f2f;
    --auth-accent-2: #153355;
    --auth-accent-3: #b71c1c;
    --portal-accent: #d32f2f;
    --auth-line: rgba(31, 41, 55, 0.1);
    --auth-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --auth-glow: 0 15px 35px rgba(211, 47, 47, 0.25);
    font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
    color: var(--auth-ink);
    padding: 1.25rem 0.75rem 0.75rem;
    background: radial-gradient(circle at 12% 8%, #f2f6fb 0%, #eef4f7 25%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(107vh - 180px); /* nav + footer allowance */
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.12;
    z-index: 0;
}

.auth-shell::before {
    width: 320px;
    height: 320px;
    background: var(--auth-accent);
    top: -160px;
    left: -140px;
}

.auth-shell::after {
    width: 260px;
    height: 260px;
    background: var(--auth-accent-2);
    bottom: -160px;
    right: -120px;
}

.auth-wrap {
    width: min(1320px, 98vw);
    margin: 0.35rem auto 0.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    padding: 2rem;
    border: 1px solid var(--auth-line);
    box-shadow: var(--auth-shadow);
    display: grid;
    gap: 1.25rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--auth-accent-2);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.auth-logo {
    width: 46px;
    height: 46px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}

.auth-title {
    font-family: "Playfair Display", "Times New Roman", serif;
  
    line-height: 1.1;
    margin: 0;
}

.auth-copy {
    color: var(--auth-muted);
    font-size: 1rem;
    margin: 0;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-stat {
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
}

.auth-stat-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.auth-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    color: var(--auth-muted);
}

.auth-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.8rem;
}

.auth-list li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-accent);
    top: 50%;
    transform: translateY(-50%);
}

.auth-list i {
    display: none;
}

.auth-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.auth-image {
    width: 100%;
    height: auto;
    display: block;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--auth-line);
    box-shadow: var(--auth-shadow);
}

.auth-card-header {
    margin-bottom: 1.5rem;
}

.auth-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.25rem;
}

.auth-card-subtitle {
    color: var(--auth-muted);
    margin: 0;
}

.auth-field {
    position: relative;
    margin-bottom: 1.2rem;
}

.auth-card .form-control {
    padding-left: 2.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: var(--auth-accent-2);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 92, 0.18);
}

.auth-field label {
    padding-left: 2.8rem;
}

.auth-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-accent-2);
    z-index: 5;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-accent-2);
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--auth-accent);
    transform: translateY(-50%) scale(1.08);
}

.auth-submit {
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    width: 100%;
    box-shadow: var(--auth-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(227, 93, 67, 0.35);
}

.auth-help {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--auth-muted);
    text-align: center;
}

@media (max-width: 991px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-right {
        order: -1;
    }

    .auth-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .auth-shell {
        padding: 1.5rem 0.75rem 2rem;
    }

    .auth-panel,
    .auth-card {
        padding: 1.5rem;
    }

    .auth-stats {
        grid-template-columns: 1fr;
    }
}
