/* ============================================
   ADMIN LOGIN PAGE - TEACHER PROMOTION SYSTEM
   MODERN GREEN THEME (Like Logtrack)
   ============================================ */

:root {
    --brand-green: #2e7d32;
    --brand-green-dark: #1b5e20;
    --brand-green-light: #22c55e;
    --brand-green-soft: #4caf50;
    --bg-gradient-start: #e8f5e9;
    --bg-gradient-end: #c8e6c9;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px -12px rgba(0, 0, 0, 0.25);
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Background Logo - with green overlay effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../assets/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

/* Login Card */
.login-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.3);
}

/* Logo Area */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.school-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(46, 125, 50, 0.4);
    transition: transform 0.3s ease;
}

.school-icon:hover {
    transform: scale(1.05);
}

.school-icon i {
    font-size: 40px;
    color: white;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.admin-badge i {
    margin-right: 5px;
}

/* Form Styles */
.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-label i {
    margin-right: 8px;
    color: var(--brand-green);
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-field:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.3s;
    font-size: 18px;
}

.toggle-password:hover {
    color: var(--brand-green);
}

/* Options Row */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-green);
}

.forgot-link {
    font-size: 13px;
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--brand-green-light);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(46, 125, 50, 0.5);
    background: linear-gradient(135deg, var(--brand-green-light), var(--brand-green));
}

.login-btn:active {
    transform: translateY(0);
}

/* Default Credential */
.default-credential {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.default-credential i {
    color: var(--brand-green);
    margin-right: 5px;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

.error-message i {
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Back Home Link */
.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-home a:hover {
    color: var(--brand-green);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 25px;
}

.footer p {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 500px) {
    .login-card {
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .school-icon {
        width: 65px;
        height: 65px;
    }
    
    .school-icon i {
        font-size: 32px;
    }
    
    .options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 25px 20px;
    }
    
    body::before {
        background-size: 50%;
    }
}