/* ==========================================================================
   FRONTEND LOGIN PAGE STYLES (Shiksha Prashar)
   ========================================================================== */

.frontend-auth-section {
    padding: 70px 20px 90px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.frontend-auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.login-box {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 15px 35px -5px rgba(0, 34, 68, 0.1), 0 10px 15px -5px rgba(0, 34, 68, 0.04);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 1.25rem auto;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 34, 68, 0.12);
}

.login-brand-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-navy, #002244);
    margin: 0 0 0.25rem 0;
}

.login-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* Role Selection Radio Cards */
.role-selector {
    margin-bottom: 1.25rem;
    text-align: left;
}

.role-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.role-card {
    position: relative;
    cursor: pointer;
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.role-card input[type="radio"]:checked + .role-card-inner {
    border-color: #0284c7;
    background: #eff6ff;
    color: var(--primary-navy, #002244);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.role-card:hover .role-card-inner {
    border-color: #cbd5e1;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
}

.form-control,
.form-group input,
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-control:focus,
.form-group input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

#submitBtn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    color: #0f172a;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 183, 3, 0.45);
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-align: left;
    border: 1px solid #fecaca;
    font-weight: 600;
}
