/*******************************************************************************
* File: admin-login.css
* Created: October 27, 2025
* Author: Rastislav Toscak
* Purpose: Styles for admin login page
* Project: PASC Region J Conference 2026 Website
*******************************************************************************/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('/assets/img/intro-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0a0e27; /* Fallback color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Login Header */
.login-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.login-header .logo {
    margin-bottom: 20px;
}

.login-header .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #4fc3f7;
}

.login-header p {
    font-size: 0.95rem;
    color: #b0b8d4;
}

/* Login Form */
.login-form {
    padding: 40px 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3561;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

/* Password Visibility Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 50px; /* Make room for toggle button */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    color: #666;
    transition: color 0.2s ease;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #4fc3f7;
}

.password-toggle:focus {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
    border-radius: 4px;
}

.password-toggle .toggle-icon {
    display: inline-block;
    user-select: none;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

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

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 30px 20px 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Login Footer */
.login-footer {
    background: #f5f5f5;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    margin: 5px 0;
    color: #666;
}

.login-footer small {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .alert {
        margin: 0 20px 15px 20px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
}

/* Loading State */
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}
