:root {
    --brand-50: #effaf2;
    --brand-100: #daf6e1;
    --brand-200: #b8ebc6;
    --brand-300: #8ddca5;
    --brand-400: #5bc67a;
    --brand-500: #35ad5b;
    --brand-600: #248847;
    --brand-700: #1f6d3c;
    --brand-800: #1d5633;
    --brand-900: #19472d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --dark-900: #0f172a;
    --dark-800: #172033;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.75rem;
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-hero: 0 24px 60px rgba(12, 74, 36, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-900);
    background:
        radial-gradient(circle at top left, rgba(53, 173, 91, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f8fbf8 45%, #ffffff 100%);
    min-height: 100vh;
}

body.theme-dark {
    background:
        radial-gradient(circle at top left, rgba(53, 173, 91, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 24%),
        linear-gradient(180deg, #0b1320 0%, #0f172a 55%, #0b1320 100%);
    color: #e2e8f0;
}

a {
    text-decoration: none;
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.55);
}

body.theme-dark .navbar-glass {
    background: rgba(15, 23, 42, 0.82);
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: white;
    box-shadow: 0 14px 30px rgba(36, 136, 71, 0.24);
    font-size: 1.35rem;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(36, 136, 71, 0.24);
    transition: all 0.25s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(36, 136, 71, 0.3);
    color: #fff;
}

.btn-amber {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
    transition: all 0.25s ease;
}

.btn-amber:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
    color: #fff;
}

.btn-soft {
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    border: 1px solid rgba(36, 136, 71, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-900);
    transition: all 0.25s ease;
}

.btn-soft:hover {
    background: var(--brand-50);
    border-color: rgba(36, 136, 71, 0.35);
    color: var(--brand-700);
}

body.theme-dark .btn-soft {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.9);
    color: #e2e8f0;
}

body.theme-dark .btn-soft:hover {
    background: rgba(53, 173, 91, 0.12);
    border-color: rgba(53, 173, 91, 0.18);
    color: #d8f7e2;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-900);
    box-shadow: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(53, 173, 91, 0.2);
    color: var(--brand-700);
}

body.theme-dark .theme-toggle {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.9);
    color: #e2e8f0;
}

.auth-section {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
}

.hero-chip.amber {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: var(--amber-600);
}

body.theme-dark .hero-chip.amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.text-gradient-amber {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--gray-600);
    max-width: 620px;
}

body.theme-dark .hero-description {
    color: #94a3b8;
}

.auth-panel,
.benefit-card {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

body.theme-dark .auth-panel,
body.theme-dark .benefit-card {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(51, 65, 85, 0.85);
    box-shadow: none;
}

.auth-panel {
    overflow: hidden;
}

.auth-panel-header-amber {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.45), rgba(255, 255, 255, 0.96));
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.theme-dark .auth-panel-header-amber {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.82));
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.icon-box {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-box.green {
    background: linear-gradient(135deg, rgba(53, 173, 91, 0.15), rgba(36, 136, 71, 0.08));
    color: var(--brand-700);
}

.icon-box.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    color: var(--amber-600);
}

.form-control,
.form-select {
    min-height: 54px;
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: none !important;
    padding-inline: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.12) !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.9);
    color: #e2e8f0;
}

.form-check-input:checked {
    background-color: var(--amber-500);
    border-color: var(--amber-500);
}

.helper-card {
    border-radius: 1.25rem;
    border: 1px dashed rgba(245, 158, 11, 0.25);
    background: rgba(254, 243, 199, 0.35);
}

body.theme-dark .helper-card {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.18);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    color: var(--dark-800);
}

body.theme-dark .check-list li {
    color: #cbd5e1;
}

.check-list i {
    color: var(--amber-500);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--amber-600);
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.benefit-card {
    padding: 1.25rem;
    height: 100%;
}

.footer-soft {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

body.theme-dark .footer-soft {
    background: rgba(15, 23, 42, 0.7);
    border-top-color: rgba(51, 65, 85, 0.85);
}

body.theme-dark .fw-bold,
body.theme-dark .fw-semibold,
body.theme-dark .section-title,
body.theme-dark .h6 {
    color: #f8fafc !important;
}

body.theme-dark .text-secondary,
body.theme-dark .text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .navbar-brand span:not(.brand-badge) {
    color: #f8fafc;
}

@media (max-width: 991.98px) {
    .auth-section {
        padding-top: 7rem;
    }
}

.btn-toggle-pw {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 48px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 1rem 1rem 0;
    transition: color 0.2s ease;
}

.btn-toggle-pw:hover {
    color: var(--brand-600);
}