:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --page: #f8fafc;
    --red: #ef4444;
    --red-hover: #dc2626;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --green: #16a34a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: "BPG Arial", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* რბილი ფონური განათება */
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    pointer-events: none;
}
body::before { top: -140px; left: -120px; background: #dff4ff; }
body::after { right: -150px; bottom: -150px; background: #ffe8e8; }

/* Main Container (კომპაქტური, გაწელვის გარეშე) */
main {
    width: min(100% - 32px, 720px);
    min-width: 0;
    margin: 0 auto;
    padding: 28px 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mail-interface {
    width: 100%;
    padding: clamp(24px, 5vw, 38px);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ლოგო და სათაური */
.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: -.06em;
}
.logo-at { color: var(--red); }
.logo-text { color: var(--ink); }

.mail-header-text {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
}

/* ღილაკები */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* შესვლის ღილაკი (მეორადი, მქრქალი რუხი-ლურჯი ტონალობა) */
.btn-login {
    color: #ffffff;
    background: #475569;
    border: 1px solid #334155;
}
.btn-login:hover { background: #334155; box-shadow: 0 8px 20px rgba(71, 85, 105, 0.2); }

/* რეგისტრაციის ღილაკი (მთავარი CTA, მკვეთრი მყარი ლურჯი) */
.btn-main-register {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}
.btn-main-register:hover { 
    background: #1d4ed8; 
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.28); 
}

/* სწრაფი ბმულები */
.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.quick-links a { text-decoration: none; }
.quick-links a:first-child { color: var(--red) !important; }
.quick-links a:last-child { color: var(--green) !important; }
.quick-links a:hover { opacity: 0.75; }

.site-info-link {
    color: var(--red) !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

/* ბლოკები და ელფოსტის მაგალითები */
.registration-block {
    margin-top: 16px;
    padding-top: 0;
    border-top: none;
}

.email-examples {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 12px 0;
}
.email-at { color: var(--red); }

.security-badge {
    margin: 16px 0;
    padding: 10px 14px;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ფუტერის ძირითადი სტილები */
footer {
    min-height: 86px;
    padding: 22px 16px;
    color: #94a3b8;
    background: var(--ink);
    text-align: center;
    font-size: 0.85rem;
}
footer p { margin: 0; }
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-separator { margin: 0 7px; color: #475569; }

.social-link { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.social-link svg { width: 18px; height: 18px; }

/* მობილური ვერსიის სტილები ფუტერისთვის */
@media (max-width: 768px) {
    footer {
        text-align: left;
        padding: 20px 16px;
    }
    footer p {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    footer p > .footer-separator {
        display: none;
    }
    .footer-inline-links {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center;
    }
    .footer-socials-group {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
    }
    .footer-socials-group .footer-separator {
        display: inline !important;
    }
}