:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --error: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--primary);
}

.logo svg {
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: var(--bg);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input[type="email"]::placeholder {
    color: var(--text-light);
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    margin-top: 24px;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.message-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.profile-container {
    text-align: center;
}

.profile-info {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg);
    border-radius: 16px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin-bottom: 16px;
    color: white;
}

.user-email {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    word-break: break-all;
}

.session-info {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 24px;
    }
}