* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    
    padding: 20px;
}

.login-container {
    margin:12rem auto;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-header h1 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.google-login {
    background: #fff;
    color: #333;
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-login:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.google-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #333;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-login-link:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.microsoft-login {
    background: #0078d4;
    color: white;
    border-color: #0078d4;
}

.microsoft-login:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 110, 190, 0.3);
}

.auth-button img,
.google-login-link img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
}

.privacy-notice {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
    position: relative;
}

.privacy-notice::before {
    content: '🔒';
    font-size: 1.1rem;
    margin-right: 8px;
}

.privacy-notice p {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    text-align: center;
}

.remember-mail-caution {
    background: #fff3cd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffc107;
}

.remember-mail-caution .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 5px;
}

.remember-mail-caution p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

.error-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #dc3545;
    margin-top: 15px;
}

.chat-support-button {
    text-decoration: none;
    color: white;
    background-color: #25D366;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.chat-support-button:hover {
    background-color: #20b558;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Responsive Styles */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .login-box {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .auth-button,
    .google-login-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        gap: 10px;
    }
    
    .auth-button img,
    .google-login-link img {
        width: 18px;
        height: 18px;
    }
    
    .remember-mail-caution {
        margin: 15px 0;
        padding: 12px;
    }
    
    .remember-mail-caution .icon {
        margin-right: 8px;
        font-size: 1.1rem;
    }
    
    .remember-mail-caution p {
        font-size: 0.85rem;
    }
    
    .privacy-notice {
        padding: 12px;
        margin-top: 15px;
    }
    
    .privacy-notice p {
        font-size: 0.85rem;
    }
    
    .divider {
        margin: 15px 0;
        font-size: 0.85rem;
    }
    
    .chat-support-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 25px 15px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-button,
    .google-login-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}