/* common.css — стили для форм и уведомлений */

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

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E6DEDE;
    border-radius: 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    background: #FFFFFF;
    transition: 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: #D42B2B;
}
.input-field:invalid {
    box-shadow: none;
}
.input-error {
    border-color: #D42B2B;
    background-color: #FFF9F9;
}

.error-message {
    color: #D42B2B;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 18px;
}

.form-error-message {
    color: #D42B2B;
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 10px;
    background: #FFF9F9;
    border-radius: 28px;
}

.login-btn {
    width: 100%;
    background: #D42B2B;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
    font-family: 'Manrope', sans-serif;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #B82222;
}

.code-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.code-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.code-btn, .code-send-btn {
    background: #1A0A0A;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    height: 52px;
    transition: background 0.2s;
}
.code-btn:hover, .code-send-btn:hover {
    background: #2F1A1A;
}
.code-btn:disabled, .code-send-btn:disabled {
    background: #B8AAAA;
    cursor: not-allowed;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    background: #D42B2B;
    color: white;
    display: inline-block;
    text-align: center;
}
.btn-small:hover {
    transform: scale(0.98);
    opacity: 0.9;
}
.cancelNameBtn, .cancelEmailBtn, .cancelPasswordBtn {
    background: #9C8484;
}
.cancelNameBtn:hover, .cancelEmailBtn:hover, .cancelPasswordBtn:hover {
    background: #7A6A6A;
}