.reg-page {
    background: #ffffff;
    min-height: 70vh;
    padding: 13rem 20px 4rem;
    font-family: inherit;
}

.reg-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.reg-title {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e2329;
}

.reg-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.reg-field {
    margin-bottom: 18px;
}

.reg-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.reg-field input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f3f4f6;
    color: #1e2329;
    font-size: 14px;
    line-height: 46px;
    outline: none;
    box-shadow: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

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

.reg-field input:focus {
    background: #eef0f3;
    box-shadow: 0 0 0 2px rgba(51, 132, 148, 0.35);
}

.reg-field:has([data-validate-for]:not(:empty)) input,
.reg-field input[aria-invalid="true"] {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}

.reg-password {
    position: relative;
}

.reg-password input {
    padding-right: 46px;
}

.reg-eye {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
}

.reg-eye svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.reg-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #dc2626;
}

.reg-error:empty {
    display: none;
}

.reg-submit {
    width: 100%;
    height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    background: #002c5d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.reg-submit:hover {
    background: #0095d9;
}

.reg-flash {
    max-width: 420px;
    margin: 0 auto 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.reg-flash.reg-flash--success,
body > p.flash-message.success {
    background: #15803d !important;
    color: #ffffff !important;
}

.reg-flash--error,
.reg-flash--warning {
    background: #fef2f2;
    color: #dc2626;
}

@media (max-width: 480px) {
    .reg-page {
        padding-top: 9.5rem;
        padding-left: 16px;
        padding-right: 16px;
    }
}
