:root {
    --bg-dark: #0f172a; /* Slate 900 */
    --accent: #10b981;  /* Emerald 500 */
    --accent-hover: #059669; /* Emerald 600 */
    --glass-bg: rgba(30, 41, 59, 0.7); /* Slate 800 semi-transparent */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background animated shapes */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 15s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.logo-icon {
    color: white;
    width: 36px;
    height: 36px;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.hidden {
    display: none !important;
}

/* User Info Panel (Post-Login) */
.user-info {
    animation: fadeIn 0.5s ease;
}

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

.user-info p {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.user-info .highlight {
    color: var(--text-main);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: inline-block;
}

/* Button overrides for project selection/continue (dynamic from JS) */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 40px 20px;
        border-radius: 20px;
        width: 95%;
        margin: 10px;
    }
    .login-title {
        font-size: 26px;
    }
    .login-subtitle {
        font-size: 14px;
    }
    .logo-container {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
}
