/* Admin Authentication Styles */

.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.95), rgba(10, 20, 40, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-login-modal {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.98), rgba(20, 30, 50, 0.98));
    border: 3px solid var(--primary-color);
    border-radius: 30px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 0 100px var(--glow-color);
    animation: slideUp 0.5s ease-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-login-form {
    margin-bottom: 2rem;
}

.admin-login-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-login-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-login-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.admin-login-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px var(--primary-color);
}

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

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.login-hint {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.8rem;
    font-style: italic;
}

/* Admin Notification */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: rgba(10, 20, 40, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.admin-notification.show {
    transform: translateX(0);
}

.admin-notification.success {
    border-color: var(--success-color);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.admin-notification.error {
    border-color: var(--danger-color);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.admin-notification.info {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Hide admin content by default - will be shown after auth */
body:not(.authenticated) .admin-container {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-login-modal {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .login-logo {
        font-size: 3rem;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }

    .admin-login-form input {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .login-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .admin-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}