/* ===== Общие ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #f0f4ff 0%, #d9e2f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1.5rem;
}

/* ===== Карточка ===== */
.form-card {
    max-width: 460px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 2.5rem 2.2rem 2.8rem;
    box-shadow: 0 20px 60px rgba(0, 20, 40, 0.12), 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-card h2 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
}

.form-card h2 i {
    color: #6366f1;
    margin-right: 10px;
}

/* ===== Поля ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.4rem;
    display: block;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-group-text {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.form-control {
    border: 1.5px solid #e2e8f0;
    border-left: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Ошибки */
.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.3rem;
    display: block;
}

/* ===== Кнопки ===== */
.btn {
    border-radius: 40px;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 0.25rem;
}

.btn-primary {
    background: #1a1e21;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: #4f46e5;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.btn-secondary:hover {
    background: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    color: #1e293b;
    border: 1px solid #1a1e21;
}

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

/* ===== Разделитель ===== */
hr {
    border: none;
    border-top: 2px dashed #cbd5e1;
    margin: 2rem 0 1.8rem;
}

/* ===== Текст ===== */
.text-muted {
    color: #64748b !important;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

/* ===== Адаптив ===== */
@media (max-width: 520px) {
    .form-card {
        padding: 1.8rem 1.2rem 2rem;
    }
    .form-card h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 0.65rem 0;
    }
}