﻿:root {
    --primary-color: #008037;
    --primary-dark: #00582f;
    --secondary-color: #004d2a;
    --surface: #ffffff;
    --surface-soft: #f6fbf6;
    --text-color: #1f2a31;
    --muted: #6b7a83;
    --border-color: rgba(0, 0, 0, 0.08);
    --error-color: #d32f2f;
    --warning-color: #f5a623;
    --shadow: 0 20px 50px rgba(8, 30, 17, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(0, 128, 55, 0.08), transparent 18%), linear-gradient(180deg, #f0faf3 0%, #edf4ef 100%);
    color: var(--text-color);
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 85% 10%, rgba(0, 128, 55, 0.06), transparent 16%), radial-gradient(circle at 14% 90%, rgba(0, 77, 42, 0.03), transparent 18%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 640px;
    margin: 48px auto;
    padding: 34px 36px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 128, 55, 0.12);
    border-radius: 28px;
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 0;
    height: 120px;
    background: linear-gradient(145deg, rgba(0, 128, 55, 0.12), rgba(0, 77, 42, 0.06));
    pointer-events: none;
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.urgent-badge {
    background: var(--error-color);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(211, 47, 47, 0.18);
}

.alert-box {
    background: rgba(0, 128, 55, 0.08);
    color: #0f2a1a;
    padding: 24px 22px;
    border-radius: 20px;
    margin-bottom: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-left: 6px solid var(--primary-color);
}

.alert-icon {
    font-size: 28px;
    line-height: 1;
    margin-top: 2px;
}

.alert-box h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.alert-box p {
    color: #142f20;
}

.highlight {
    color: var(--primary-dark);
    font-weight: 700;
}

.form-container {
    display: grid;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--secondary-color);
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: var(--surface-soft);
    color: var(--text-color);
    transition: border-color 0.25s ease, transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 128, 55, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #9aa5ae;
}

.validation-message {
    min-height: 20px;
    color: var(--error-color);
    font-size: 0.9rem;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0, 128, 55, 0.05);
    border: 1px solid rgba(0, 128, 55, 0.12);
    padding: 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--muted);
}

.security-notice input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.security-notice label {
    margin-bottom: 0;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 26px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(0, 128, 55, 0.22);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 24px 40px rgba(0, 88, 47, 0.22);
}

.btn-text {
    margin-right: 8px;
}

.btn-icon {
    font-size: 18px;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 30, 22, 0.78);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(100%, 360px);
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.spinner {
    width: 72px;
    height: 72px;
    border: 8px solid rgba(0, 128, 55, 0.18);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.loader-subtext {
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    max-width: 300px;
    line-height: 1.5;
}

.footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.disclaimer {
    font-style: italic;
    color: #7a8b97;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .container {
        margin: 20px 16px;
        padding: 24px 20px;
    }

    .alert-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .submit-btn {
        width: 100%;
    }

    .security-notice {
        flex-direction: column;
        align-items: flex-start;
    }
}
