.registration-section {
    padding: 20px 12px;
    background-color: #f4f7fd;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.registration-form-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e8eef8;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

/* User requested: remove signup page title/subtitle */
.form-header {
    display: none;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #1b2b4b;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe3f3;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.2;
    background: #f8faff;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary, #0021ff);
    box-shadow: 0 0 0 3px rgba(0, 33, 255, 0.12);
    background: #ffffff;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a94ab;
    font-size: 14px;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.2;
    min-height: 14px;
}

.password-strength-container {
    margin-top: 6px;
}

.password-strength-bar {
    height: 3px;
    width: 0;
    background-color: #e2e8f6;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.password-strength-text {
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.terms-group {
    margin-top: 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.45;
    color: #4b5875;
    position: relative;
    padding-left: 24px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #ffffff;
    border: 1px solid #ced8ea;
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f4f7fd;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary, #0021ff);
    border-color: var(--primary, #0021ff);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-primary {
    background: var(--primary, #0021ff);
    color: #fff;
    border: none;
    min-height: 42px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 33, 255, 0.22);
}

.btn-primary:disabled {
    background-color: #a3b2d7;
    cursor: not-allowed;
    box-shadow: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
    margin-left: 8px;
}

.btn-primary.loading .loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 10px;
}

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

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-footer {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2fb;
}

.form-footer p {
    font-size: 12px;
    color: #60708f;
}

.form-footer a {
    color: var(--primary, #0021ff);
    font-weight: 700;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .registration-section {
        padding: 8px 6px;
        min-height: auto;
    }

    .registration-section .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .registration-container {
        max-width: 100%;
    }

    .registration-form-wrapper {
        width: 100%;
        padding: 12px 10px;
        border-radius: 10px;
        margin: 0;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
