.auth-page {
    min-height: calc(100vh - 80px);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.auth-section {
    padding: 45px 0;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.auth-card-register {
    max-width: 620px;
}

.auth-heading {
    text-align: center;
    margin-bottom: 32px;
}

.auth-heading h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.auth-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.has-error .form-control {
    border-color: #ef4444;
}

.help-block {
    display: block;
    margin-top: 2px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
}

.auth-checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkmark {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-checkbox input:checked + .checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.auth-checkbox input:checked + .checkbox-custom .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text a,
.auth-bottom-link a,
.auth-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.checkbox-text a:hover,
.auth-bottom-link a:hover,
.auth-link:hover {
    text-decoration: underline;
}

.recaptcha-box {
    width: 100%;
    overflow-x: auto;
    padding: 4px 0;
}

.recaptcha-box .g-recaptcha {
    transform-origin: left top;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.auth-bottom-link {
    padding-top: 6px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-bottom-link span {
    margin-right: 4px;
}

@media (max-width: 767px) {
    .auth-section {
        padding: 32px 0;
    }

    .auth-card,
    .auth-card-register {
        max-width: 100%;
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-heading p {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .recaptcha-box .g-recaptcha {
        transform: scale(0.88);
    }

    .recaptcha-box {
        height: 72px;
    }
}

@media (max-width: 340px) {
    .recaptcha-box .g-recaptcha {
        transform: scale(0.82);
    }

    .recaptcha-box {
        height: 68px;
    }
}

.auth-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.auth-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}