:root {
    --primary: #6b4df6;
    --primary-dark: #4a2fd5;
    --accent: #8f7dfc;
    --surface: #ffffff;
    --surface-muted: #f7f7fb;
    --text-dark: #1f1f2c;
    --text-muted: #7c7d90;
    --border: #e1e1ef;
    --shadow: 0 30px 60px rgba(42, 21, 88, 0.15);
}

* {
    box-sizing: border-box;
}

body.login-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f0ff 0%, #eef3ff 100%);
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.toast-banner {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    font-weight: 600;
    z-index: 2;
}

.login-panel {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-panel {
    background: linear-gradient(160deg, rgba(107, 77, 246, 0.95), rgba(142, 95, 255, 0.85));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.2), transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0 0 0.5rem;
}

.hero-panel h1 {
    font-size: 3rem;
    margin: 0 0 0.75rem;
}

.hero-subtitle {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-video {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.hero-video__caption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
}

.form-panel {
    background: var(--surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    width: min(420px, 100%);
    background: var(--surface);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.form-card__header {
    margin-bottom: 2rem;
}

.form-card__eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.form-card__subtitle {
    color: var(--text-muted);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fafafe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 77, 246, 0.15);
}

.input-icon {
    color: var(--primary);
    display: flex;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="password"],
.input-wrapper input[type="email"] {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 1rem;
    outline: none;
}

.text-danger {
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.link-muted {
    color: var(--text-muted);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--primary);
}

.login-button {
    border: none;
    border-radius: 18px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 15px 30px rgba(107, 77, 246, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(107, 77, 246, 0.45);
}

.language-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.language-switch__buttons {
    display: inline-flex;
    gap: 0.75rem;
}

.lang-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.lang-btn.active {
    border-color: transparent;
    background: rgba(107, 77, 246, 0.1);
    color: var(--primary);
}

.form-footnote {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.form-footnote a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 1200px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-panel {
        padding: 2.5rem;
    }

    .hero-video video {
        height: 260px;
    }

    .form-card {
        padding: 2.5rem;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .login-panel {
        padding: 2rem 1.5rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}
