/**
 * Atalia Login Page Styles
 * Modern SaaS login page with animated gradient background
 */

:root {
    --atalia-blue-dark: #0a1647;
    --atalia-blue: #1e3a8a;
    --atalia-blue-light: #3b82f6;
    --atalia-blue-lighter: #60a5fa;
    --atalia-accent: #cae1ff;
    --border-color: #f0eded;
    --text-muted: #737373;
    --text-primary: #171717;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--atalia-blue-dark) 0%, var(--atalia-blue) 40%, var(--atalia-blue-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Background animation */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(202, 225, 255, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.login-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

/* Left side - Hero content */
.hero-content {
    flex: 1;
    color: white;
    max-width: 500px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

/* Right side - Login form */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

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

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Rethink Sans', sans-serif;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--atalia-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--atalia-blue-light);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--atalia-accent);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rethink Sans', sans-serif;
}

.btn-login:hover {
    background: #b8d4f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--atalia-blue-light);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 992px) {
    .login-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .form-card {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 2rem;
    }
}
