/* Layout & Container Styling */
.student-login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    padding-bottom: 60px;
}

.login-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

.portal-badge {
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.login-hero h1 {
    font-size: 36px;
    color: #0f172a;
    margin: 0 0 10px;
}

.login-hero p {
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.student-login-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-left {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.login-right {
    flex: 0 0 360px;
}

/* Tabs & Toggle Navigation */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Forms Base Styling */
.auth-form-panel {
    display: none;
}

.auth-form-panel.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-submit-btn {
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background-color: #2563eb;
}

/* Radio Button Role Options */
.role-selection {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.role-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background-color: #f8fafc;
}

.role-option input[type="radio"] {
    accent-color: #3b82f6;
}

/* Feature Card (Right Side) */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.feature-card li:last-child {
    border-bottom: none;
}

/* Alerts */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.auth-alert-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-success { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.form-toggle-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
.form-toggle-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .student-login-wrapper { flex-direction: column; }
    .login-right { flex: 1; }
}