/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f2f5;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 380px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Заголовок */
.title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-align: center;
}

.subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 28px;
    text-align: center;
}

/* Поле ввода */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    color: #1a1a2e;
}

.input-group input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

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

/* Кнопка Send */
.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s, opacity 0.25s, transform 0.15s;
    background: #4f46e5;
    color: #ffffff;
}

.btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn:not(:disabled):hover {
    background: #4338ca;
    transform: scale(1.01);
}

.btn:not(:disabled):active {
    transform: scale(0.97);
}

/* Подсказки клавиатуры */
.keyboard-hint {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.keyboard-hint span {
    background: #f3f4f6;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 0.3px;
}

/* Условия */
.terms {
    margin-top: 24px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.terms a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.terms a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 420px) {
    .card {
        padding: 28px 18px 24px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .input-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 12px;
        font-size: 15px;
    }
}