﻿/* ===========================
   Login Pagina Styling
   =========================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.login-wrapper::before,
.login-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.login-wrapper::before {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    top: -150px;
    right: -150px;
}

.login-wrapper::after {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -250px;
    left: -250px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

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

/* School Branding */
.school-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-placeholder {
    display: inline-flex;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.school-branding h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Google Login Button */
.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 2rem 0;
}

.google-login-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Login Info */
.login-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.login-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.login-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.help-text {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Error Messages */
.error-message {
    background: var(--danger-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.875rem;
    animation: shake 0.5s;
}

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

/* Success Message */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.875rem;
    animation: slideUp 0.3s ease-out;
}

/* Loading State */
.google-login-btn.loading {
    opacity: 0.7;

    cursor: not-allowed;
}

.google-login-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid var(--gray-400);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .school-branding h1 {
        font-size: 1.75rem;
    }
    
    .google-login-btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }
}