/*===========================================
  ADMIN LOGIN PAGE STYLES
  Faculty Portal Login
  Includes: Network animation, glassmorphism
===========================================*/

:root {
    --primary-color: #800020; /* Maroon */
    --secondary-color: #FFD700; /* Gold */
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --text-main: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Figtree', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    position: relative;
    color: var(--text-main);
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/admin-login-bg.png?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: 0;
    transform: scale(1.1); /* Prevents blur edge artifacts */
}

#network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0; /* Hide network animation, using image background instead */
    display: none; /* Completely hide canvas */
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(128, 0, 32, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 5px;
}

.university-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.university-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: all 0.3s ease;
    color: var(--text-main);
    text-align: left;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    transform: translateY(-1px);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: #fef2f2;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    text-align: left;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), #5c0017);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
    background: linear-gradient(135deg, #990026, #800020);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Remember Me Checkbox */
.remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    user-select: none;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.remember-text {
    font-weight: 500;
}

/* Auth Links */
.auth-links {
    margin-top: 15px;
    text-align: center;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #5c0017;
    text-decoration: underline;
}

.forgot-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .university-name {
        font-size: 20px;
    }
}

