:root {
    --color-primary: #2563eb;
    --color-accent: #00e5a8;
    --color-highlight: #ff7a00;
    --color-link: #1f54c7;
    --color-bg: #f6f7fb;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius-lg: 18px;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

.bg-image {
    position: relative;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200' viewBox='0 0 1600 1200'%3E%3Cdefs%3E%3CradialGradient id='r1' cx='35%25' cy='35%25' r='60%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.35'/%3E%3Cstop offset='55%25' stop-color='%23ffffff' stop-opacity='0.08'/%3E%3Cstop offset='100%25' stop-color='%23000000' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='r2' cx='70%25' cy='65%25' r='55%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.22'/%3E%3Cstop offset='60%25' stop-color='%23ffffff' stop-opacity='0.06'/%3E%3Cstop offset='100%25' stop-color='%23000000' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%232563eb' stop-opacity='0.55'/%3E%3Cstop offset='55%25' stop-color='%2300e5a8' stop-opacity='0.35'/%3E%3Cstop offset='100%25' stop-color='%23ff7a00' stop-opacity='0.18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='1200' fill='url(%23g)'/%3E%3Ccircle cx='420' cy='320' r='520' fill='url(%23r1)'/%3E%3Ccircle cx='1180' cy='820' r='560' fill='url(%23r2)'/%3E%3Cpath d='M0 860 C 220 760, 360 980, 560 880 S 940 760, 1120 860 S 1400 980, 1600 860' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='3'/%3E%3Cpath d='M0 940 C 260 860, 380 1060, 600 980 S 960 860, 1180 940 S 1420 1060, 1600 940' fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='3'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.72), rgba(0, 229, 168, 0.38));
    z-index: 1;
}

.brand-text {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 56px;
    text-align: left;
}

.brand-text .brand-inner {
    width: 100%;
    max-width: 640px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.brand-badge i {
    color: var(--color-highlight);
}

.brand-features {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.brand-feature {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-feature:nth-child(1) {
    background: rgba(37, 99, 235, 0.18);
}

.brand-feature:nth-child(2) {
    background: rgba(0, 229, 168, 0.16);
}

.brand-feature:nth-child(3) {
    background: rgba(255, 122, 0, 0.16);
}

.brand-feature i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
}

.brand-feature-title {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.97);
    line-height: 1.2;
    margin-bottom: 2px;
}

.brand-feature-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.4;
}

.brand-text h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
}

.brand-text p {
    margin: 0;
    max-width: 44ch;
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.login {
    min-height: 100vh;
    background: #fff;
    position: relative;
}

.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-highlight));
}

.login-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    max-width: 520px;
    margin: 0 auto;
}

.login-heading {
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--color-muted);
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.form-floating > .form-control {
    border-radius: 14px;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 168, 0.22);
}

.btn-login {
    border-radius: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.06rem;
    padding: 0.9rem 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1f54c7;
    border-color: #1f54c7;
}

a,
a:hover {
    color: var(--color-link);
}
