/* Login - Institutional Style with Clean Background */
body {
    background: #e5e7eb;
    background-attachment: fixed;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.login-card {
    background: #fff;
    border: 1px solid #ffffff;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.15);
    overflow: hidden;
    outline: 1px solid #ffffff;
}

.login-card-header {
    background: linear-gradient(135deg, #0d5ba8 0%, #1e5fa8 50%, #2563eb 100%);
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #ffffff;
    position: relative;
}

.auth-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.auth-logos img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.login-card-header .subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
}

.login-card h2 {
    text-align: center;
    margin: 1rem 0 0.25rem;
    padding: 0 2rem;
    color: #1a365d;
    font-size: 1.35rem;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 1rem;
    padding: 0 2rem;
    font-size: 0.875rem;
}

.login-form {
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #2c5282;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.login-footer p {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

/* Login Tabs - Institutional Style */
.login-tabs {
    display: flex;
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 1.5rem;
    background: #f8fafc;
}

.tab-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: #2c5282;
    background: rgba(44, 82, 130, 0.05);
}

.tab-btn.active {
    color: #0d5ba8;
    font-weight: 700;
    background: #fff;
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d5ba8 0%, #1e5fa8 50%, #2563eb 100%);
    box-shadow: 0 3px 10px rgba(13, 91, 168, 0.5);
}

.login-tab-content {
    display: none;
    padding: 1.5rem 0 0;
}

.login-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons - Institutional Style */
.btn-institutional {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-institutional:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.4);
}

.btn-institutional:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

.btn-institutional i {
    font-size: 1.1rem;
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.login-card .btn-primary,
.otp-card .btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.login-card .btn-primary:hover,
.otp-card .btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.4);
}

.login-card .btn-primary:active,
.otp-card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

/* OTP Specific Styles */
.otp-card {
    text-align: center;
}

.otp-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.otp-input {
    text-align: center;
    font-size: 1.75rem;
    letter-spacing: 0.75rem;
    font-weight: 700;
    color: #1a365d;
    border: 2px solid #e2e8f0;
    padding: 1rem;
}

.otp-input:focus {
    border-color: #0d5ba8;
    box-shadow: 0 0 0 3px rgba(13, 91, 168, 0.15);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.85rem;
    font-style: italic;
}

.otp-actions {
    margin: 1.5rem 0 1rem;
    text-align: center;
}

.resend-form {
    display: inline;
}

.btn-link {
    background: none;
    border: none;
    color: #0d5ba8;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.btn-link:hover {
    color: #2563eb;
    background: rgba(13, 91, 168, 0.05);
}

.btn-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #0d5ba8;
    transform: translateX(-2px);
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Alerts - Institutional Style */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 0 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert strong {
    font-weight: 700;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.alert-error::before {
    content: '⚠';
    font-size: 1.25rem;
    font-weight: bold;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    color: #14532d;
}

.alert-success::before {
    content: '✓';
    font-size: 1.25rem;
    font-weight: bold;
    color: #16a34a;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    color: #1e3a8a;
}

.alert-info::before {
    content: 'ℹ';
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
}

.alert-info i {
    font-size: 1.1rem;
}
