/* Общие сбросы и шрифты */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8faf5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Размытые овалы */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: #5FAF2D;
}

body::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
    background: #2e7d32;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 420px;
    width: 100%;
    padding: 40px 35px 30px;
    border: 1px solid #e8e8e8;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.logo img {
    display: block;
    width: 40px;
    height: 40px;
}

.logo-text {
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.5px;
    color: #000000;
}

.logo-text span {
    font-weight: 300;
    color: #555555;
}

.subhead {
    font-size: 14px;
    color: #333333;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.divider {
    height: 2px;
    background: #e0e0e0;
    width: 60px;
    margin: 10px auto 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #000000;
}

.form-group input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #999999;
    font-weight: 300;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: #1b5e20;
}

.btn:active {
    transform: scale(0.98);
}

.error-message {
    margin-top: 18px;
    padding: 10px 12px;
    background: #fff2f0;
    border-left: 4px solid #d32f2f;
    border-radius: 6px;
    color: #b71c1c;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.error-message.visible {
    display: flex;
}

.error-message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.footer-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    font-size: 12px;
    color: #777777;
    letter-spacing: 0.2px;
}

.footer-note strong {
    color: #000000;
    font-weight: 500;
}

/* Адаптив */
@media (max-width: 480px) {
    .card {
        padding: 28px 20px 24px;
    }
    .logo-text {
        font-size: 22px;
    }
}
