:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1e40af;
    --auth-card-bg: rgba(255, 255, 255, 0.92);
    --auth-text-dark: #0f172a;
    --auth-text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--auth-text-dark);
    background: radial-gradient(circle at 8% 10%, #dbeafe 0%, #f8fbff 45%, #e2e8f0 100%);
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.auth-hero {
    padding: 56px clamp(24px, 5vw, 72px);
    background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.auth-hero::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    top: -90px;
    right: -80px;
}

.auth-hero::after {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    bottom: 12%;
    left: -70px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 34px;
    font-weight: 700;
    font-size: 1.08rem;
    width: fit-content;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
}

.brand-link img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.brand-link span {
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

.auth-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.auth-hero p {
    margin: 0;
    color: #dbeafe;
    max-width: 520px;
    line-height: 1.7;
}

.auth-hero ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.auth-hero li {
    margin-bottom: 13px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-hero i {
    color: #86efac;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-card {
    width: min(560px, 96%);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--auth-card-bg);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 22px 22px 26px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: #eff6ff;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 22px;
}

.tab-button {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    font-weight: 700;
    background: transparent;
    color: #334155;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #fff;
    background: linear-gradient(120deg, var(--auth-primary), var(--auth-primary-dark));
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.24);
}

.tab-content {
    display: none;
}

.tab-content h2 {
    margin: 0;
    font-size: 1.48rem;
    font-weight: 800;
}

.back-home-btn {
    border-radius: 10px;
    margin-bottom: 14px;
}

.subtitle {
    margin: 8px 0 16px;
    color: var(--auth-text-muted);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d1d5db;
    padding: 0.66rem 0.78rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.password-group .password-toggle {
    border-radius: 0 10px 10px 0;
    border-color: #d1d5db;
}

.password-group .password-toggle:hover {
    background: #f8fafc;
}

.password-group .form-control {
    border-right: 0;
}

.btn-primary {
    background: linear-gradient(120deg, var(--auth-primary), var(--auth-primary-dark));
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 14px;
}

.btn-google {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-weight: 700;
    padding: 10px 14px;
}

.btn-google:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.alert {
    border-radius: 10px;
    font-size: 0.95rem;
}

a {
    color: var(--auth-primary-dark);
    font-weight: 600;
}

@media (max-width: 991px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        padding: 26px 18px;
    }

    .auth-hero ul {
        margin-top: 18px;
    }

    .auth-panel {
        padding: 18px 10px 24px;
    }

    .auth-card {
        max-height: none;
    }
}
