/* Ideal Coaching Centre - Custom Auth Theme */
.ideal-auth-wrapper {
    min-height: 100vh;
    background: #f8fafc;
}

.ideal-hero-panel {
    background: linear-gradient(145deg, #150204 0%, #2b060a 40%, #430910 75%, #180205 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.ideal-hero-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.ideal-hero-panel::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 21, 28, 0.28) 0%, rgba(196, 21, 28, 0) 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.ideal-hero-content {
    position: relative;
    z-index: 2;
}

.ideal-logo-badge {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.35), 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #7d0e14;
    transition: transform 0.3s ease;
}

.ideal-logo-badge:hover {
    transform: scale(1.04) rotate(1deg);
}

.ideal-feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.25s ease;
}

.ideal-feature-box:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-3px);
}

.ideal-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.ideal-login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
}

.ideal-input-group .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding-left: 14px;
    padding-right: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ideal-input-group .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.ideal-input-group .form-control:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.ideal-input-group .btn-password-toggle {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.ideal-input-group:focus-within .input-group-text,
.ideal-input-group:focus-within .form-control,
.ideal-input-group:focus-within .btn-password-toggle {
    border-color: #c4151c;
    background: #ffffff;
}

.ideal-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(196, 21, 28, 0.12);
    border-radius: 12px;
}

.btn-ideal-primary {
    background: linear-gradient(135deg, #a7141d 0%, #7e0b12 100%);
    border: 1px solid #d4af37;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(167, 20, 29, 0.28);
    transition: all 0.25s ease;
}

.btn-ideal-primary:hover,
.btn-ideal-primary:focus {
    background: linear-gradient(135deg, #be1721 0%, #900d15 100%);
    border-color: #f3c85a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(167, 20, 29, 0.38);
}

.btn-ideal-primary:active {
    transform: translateY(0);
}

.ideal-lang-btn {
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ideal-lang-btn.active {
    background: #7e0b12;
    border-color: #7e0b12;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(126, 11, 18, 0.25);
}

.ideal-lang-btn:not(.active) {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #475569;
}

.ideal-lang-btn:not(.active):hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* The sign-in experience shares the workspace's calm navy and gold direction. */
.auth-body { background: var(--qf-body-bg); }
.ideal-auth-wrapper { background: var(--qf-body-bg); }
.ideal-hero-panel { background: linear-gradient(145deg, #14283f, #203d59); }
.ideal-hero-panel::after { background: radial-gradient(circle, rgba(116, 163, 203, .15), transparent 70%); }
.ideal-hero-panel .ideal-logo-badge { width: 70px; height: 70px; border-width: 2px; box-shadow: none; }
.ideal-hero-panel .ideal-hero-content > .d-flex:first-child { flex-wrap: wrap; }
.ideal-hero-panel .ideal-hero-content > .d-flex:first-child > div > .d-flex { flex-wrap: wrap; }
.ideal-hero-panel h1 { font-size: clamp(30px, 3vw, 48px); font-weight: 800; letter-spacing: -.04em; margin-top: 48px !important; }
.ideal-feature-box { padding: 18px 16px; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); box-shadow: none; }
.ideal-feature-box:hover { transform: none; }
.ideal-hero-panel > .ideal-hero-content:last-child { flex-wrap: wrap; gap: 12px; }
.ideal-hero-panel > .ideal-hero-content:last-child > div { flex-wrap: wrap; gap: 10px !important; }
.ideal-auth-wrapper .col-xl-5 { background: var(--qf-card-bg) !important; }
.ideal-input-group .form-control, .ideal-input-group .input-group-text, .ideal-input-group .btn-password-toggle { min-height: 50px; background: var(--qf-input-bg); color: var(--qf-text); border-color: var(--qf-border); }
.ideal-input-group:focus-within { box-shadow: 0 0 0 3px rgba(49,94,139,.12); }
.ideal-input-group:focus-within .form-control, .ideal-input-group:focus-within .input-group-text, .ideal-input-group:focus-within .btn-password-toggle { border-color: #315e8b; background: var(--qf-input-bg); }
.btn-ideal-primary { background: #14283f; border: 1px solid #14283f; color: #fff; box-shadow: none; letter-spacing: 0; }
.btn-ideal-primary:hover, .btn-ideal-primary:focus { background: #234563; border-color: #234563; box-shadow: none; transform: none; }
.ideal-lang-btn.active { background: #14283f; border-color: #14283f; box-shadow: none; }
.ideal-lang-btn { min-height: 36px; }
.auth-body .text-dark { color: var(--qf-heading) !important; }
.auth-body a { color: var(--ui-link); }
@media (max-width: 575px) {
    .ideal-auth-wrapper .col-xl-5 { padding: 24px 20px !important; min-height: 100dvh; }
    .ideal-input-group .form-control { font-size: 16px; }
    .ideal-auth-wrapper h2 { font-size: 24px; }
    .auth-body .card-body { padding: 24px !important; }
}

