﻿:root {
    --bg1: #1a1a1a;
    --bg2: #5f0000;
    --primary: #b71c1c;
    --primary-dark: #7f0000;
    --accent: #fff8f2;
    --text: #111827;
    --muted: #6b7280;
    --card: rgba(255,255,255,.92);
    --shadow: 0 20px 50px rgba(0,0,0,.18);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 30%), linear-gradient(135deg, var(--bg1), var(--bg2));
    color: var(--text);
}

body {
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .55;
    pointer-events: none;
}

.bg-glow-1 {
    width: 240px;
    height: 240px;
    top: -60px;
    right: -80px;
    background: rgba(255,255,255,.10);
}

.bg-glow-2 {
    width: 180px;
    height: 180px;
    bottom: 40px;
    left: -70px;
    background: rgba(255,107,0,.16);
}

.login-card {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 22px;
    position: relative;
    z-index: 1;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.logo-wrap {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid rgba(183,28,28,.12);
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

    .logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.brand-text {
    min-width: 0;
}

.brand-kicker {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 2px;
}

.brand-name {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    color: #111827;
}

.brand-sub {
    margin-top: 5px;
    font-size: 13px;
    color: var(--muted);
}

.hero {
    background: linear-gradient(135deg, #fff8f2, #fff0e2);
    border: 1px solid #f4d3bb;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: #111827;
}

.hero p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.form-box {
    margin-top: 8px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #fff7f0;
    border-right: 1px solid #eee;
    font-weight: 800;
    color: #7f0000;
    min-width: 60px;
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 15px;
    background: transparent;
    color: #111827;
}

.primary-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(183,28,28,.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .primary-btn:active {
        transform: translateY(1px);
    }

.helper-text {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.feature-box {
    background: #fff8f2;
    border: 1px solid #f4d3bb;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.feature-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

@media (max-width: 420px) {
    .login-card {
        padding: 18px;
        border-radius: 26px;
    }

    .logo-wrap {
        width: 66px;
        height: 66px;
        border-radius: 18px;
    }

    .brand-name {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .feature-grid {
        gap: 10px;
    }

    .feature-box {
        min-height: 102px;
        padding: 14px 8px;
    }
}
