/**
 * Atalia Login / Register Page Styles
 * Brand palette: near-black surface + Brand Blue #1036F2 accent
 */

* {
    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;
}

/* ── Background ───────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
}

/* Radial brand-blue glows */
.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 50%, rgba(16, 54, 242, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(54, 85, 244, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 60% 90%, rgba(16, 54, 242, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle dot-grid overlay */
.login-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(16, 54, 242, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
    pointer-events: none;
}

/* ── Layout ───────────────────────────────────────────────── */
.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: 1100px;
    width: 100%;
    gap: 5rem;
}

/* ── Left hero ────────────────────────────────────────────── */
.hero-content {
    flex: 1;
    max-width: 480px;
}

.logo {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 36px;
    width: auto;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #e0e4f0;
    letter-spacing: -0.025em;
}

.hero-content h1 span {
    color: #6681f7;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(224, 228, 240, 0.65);
    font-weight: 400;
}

/* Feature chips */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: rgba(16, 54, 242, 0.12);
    border: 1px solid rgba(16, 54, 242, 0.25);
    color: #6681f7;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-chip .material-symbols-rounded {
    font-size: 1rem;
}

/* ── Right form card ──────────────────────────────────────── */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.75rem 2.5rem;
    border: 1px solid rgba(16, 54, 242, 0.12);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 440px;
    position: relative;
    flex-shrink: 0;
}


/* ── Form header ──────────────────────────────────────────── */
.form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #1036F2 0%, #3655f4 100%);
}

.form-logo img {
    width: 28px;
    height: 28px;
}

.form-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f194a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.form-header p {
    font-size: 0.9rem;
    color: #9599af;
}

/* ── Form elements ────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4a4d60;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Input fields */
.login-wrapper input[type='email'],
.login-wrapper input[type='password'],
.login-wrapper input[type='text'],
.login-wrapper .form-input {
    width: 100%;
    padding: 0.75rem 0.95rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #0f194a !important;
    background: #f0f2fa !important;
    border: 1px solid #d9dbe2 !important;
    border-radius: 8px;
    transition: all 0.18s ease;
    font-family: 'Rethink Sans', sans-serif;
}

.login-wrapper input[type='email']::placeholder,
.login-wrapper input[type='password']::placeholder,
.login-wrapper input[type='text']::placeholder,
.login-wrapper .form-input::placeholder {
    color: #9599af !important;
}

.login-wrapper input[type='email']:focus,
.login-wrapper input[type='password']:focus,
.login-wrapper input[type='text']:focus,
.login-wrapper .form-input:focus {
    outline: none;
    background: #ffffff !important;
    border-color: #1036F2 !important;
    box-shadow: 0 0 0 3px rgba(16, 54, 242, 0.12) !important;
}

/* Forgot link row */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.25rem;
}

.forgot-link {
    font-size: 0.8rem;
    color: #1036F2;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: #0c228f;
    text-decoration: underline;
}

/* ── Primary button ───────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1036F2 0%, #3655f4 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: 'Rethink Sans', sans-serif;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0c28cc 0%, #2543e8 100%);
    transform: translateY(-1px);
}

.btn-login:hover::after {
    transform: translateX(100%);
}

.btn-login:active {
    transform: translateY(0);
}

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

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #9599af;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d9dbe2;
}

.divider span {
    padding: 0 0.9rem;
}

/* ── Footer link ──────────────────────────────────────────── */
.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #9599af;
}

.form-footer a {
    color: #1036F2;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    color: #0c228f;
    text-decoration: underline;
}

/* ── Alert ────────────────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: none;
    font-size: 0.875rem;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #ffe7f0;
    color: #991b1b;
    border: 1px solid rgba(207, 34, 46, 0.2);
}

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

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

    .hero-chips {
        justify-content: center;
    }

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

    .form-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    body, html {
        overflow: auto;
    }

    .login-container {
        padding: 1.25rem;
        align-items: flex-start;
    }

    .login-content {
        gap: 2rem;
    }

    .hero-content {
        display: none;
    }

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

    .logo-image {
        height: 30px;
    }
}
