/* Authentication Pages (Login & Admin Login) */

.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--accent-blue-bright);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--glow-blue);
}

.login-header p {
    color: var(--text-secondary);
}

/* Admin login specific styles */
.login-header h1.admin-title {
    color: #ff9800;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.admin-badge {
    display: inline-block;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* Admin login input focus */
.admin-login .form-group input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.login-button {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-button:hover {
    background: var(--accent-blue-bright);
    box-shadow: 0 0 20px var(--glow-blue);
}

/* Admin login button */
.admin-login .login-button {
    background: #ff9800;
}

.admin-login .login-button:hover {
    background: #fb8c00;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 580px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid;
    animation: slideInBounce 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2), 0 0 20px rgba(76, 175, 80, 0.1);
}

.alert-success::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    display: inline-block;
    animation: checkPulse 0.6s ease-out;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.alert-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2), 0 0 20px rgba(244, 67, 54, 0.1);
}

.alert-error::before {
    content: "✗ ";
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    display: inline-block;
    animation: shakePulse 0.6s ease-out;
}

@keyframes shakePulse {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-5px) scale(1.2); }
    75% { transform: translateX(5px) scale(1.2); }
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-color: rgba(255, 152, 0, 0.4);
    color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2), 0 0 20px rgba(255, 152, 0, 0.1);
}

.alert-warning::before {
    content: "⚠ ";
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    display: inline-block;
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.auth-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--accent-blue-bright);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--glow-blue);
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
