 html, body, section, footer, main { background: #fff !important; }
footer, .site-footer { box-shadow: none !important; border-top: none !important; }

.auth-page-wrapper {
    padding: 40px 15px; /* бока */
}

.auth-card {
    width: 100%;
    max-width: 500px; /* отсуп ПК */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

/* внутренние отступы */
.auth-card-body {
    padding: 50px 40px; 
}

@media (max-width: 576px) {
    .auth-card-body {
        padding: 35px 20px; /* отступы на смартфонах */
    }
}

/* 3. Иконка сверху */
.icon-circle {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    color: #0d6efd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 15px;
}

.form-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 18px;
}

.input-group-custom input {
    width: 100%;
    height: 54px; 
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding-left: 45px;
    padding-right: 15px;
    font-size: 16px;
    transition: all 0.2s;
}

.input-group-custom input:focus {
    outline: none;
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.05);
}

.captcha-row {
    display: flex;
    gap: 12px;
}

@media (max-width: 400px) {
    .captcha-row {
        flex-direction: column; /* Капча под поле ввода на совсем узких экранах */
    }
}

.captcha-img-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

#captcha {
    height: 35px;
    cursor: pointer;
    border-radius: 6px;
}

.refresh-btn {
    background: none;
    border: none;
    color: #a0aec0;
    margin-left: 8px;
    font-size: 18px;
    transition: 0.3s;
}

.refresh-btn:hover { color: #0d6efd; transform: rotate(180deg); }

.btn-submit-main {
    width: 100%;
    height: 56px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.btn-submit-main:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.2);
}

.status-box { min-height: 20px; font-size: 14px; text-align: center; margin-bottom: 15px; }
.alert-custom { padding: 12px; border-radius: 12px; font-weight: 500; }
.alert-err { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.alert-ok { background: #f0fff4; color: #2f855a; border: 1px solid #c6f6d5; }

.back-to-login { text-decoration: none; color: #718096; font-size: 14px; font-weight: 600; transition: 0.2s; }
.back-to-login:hover { color: #0d6efd; }