/**
 * Public registration form styles.
 * Standalone (neutral gray) palette so the form looks consistent even when the
 * frontend sheet styles are not loaded on the page.
 */
.ortho-registration-form {
    --reg-primary: #111827;
    --reg-primary-2: #374151;
    --reg-surface: #ffffff;
    --reg-border: #e5e7eb;
    --reg-text: #111827;
    --reg-muted: #6b7280;
    --reg-success: #16a34a;
    --reg-danger: #ef4444;

    direction: rtl;
    text-align: right;
    max-width: 560px;
    margin: 24px auto;
    background: var(--reg-surface);
    border: 1px solid var(--reg-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    color: var(--reg-text);
}

.ortho-reg-header {
    background: linear-gradient(120deg, var(--reg-primary) 0%, var(--reg-primary-2) 100%);
    color: #fff;
    padding: 22px 24px;
}

.ortho-reg-header h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.ortho-reg-sub {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.ortho-reg-body {
    padding: 22px 24px 26px;
}

.ortho-reg-field {
    margin-bottom: 16px;
}

.ortho-reg-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--reg-text);
}

.ortho-reg-field input[type="text"],
.ortho-reg-field input[type="email"],
.ortho-reg-field input[type="password"],
.ortho-reg-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    background: #fff;
    color: var(--reg-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ortho-reg-field input:focus,
.ortho-reg-field select:focus {
    outline: none;
    border-color: var(--reg-primary-2);
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.12);
}

.ortho-reg-field input[dir="ltr"] {
    text-align: left;
}

.ortho-reg-type {
    display: flex;
    gap: 12px;
}

.ortho-reg-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.15s, background 0.15s;
}

.ortho-reg-radio:hover {
    border-color: var(--reg-primary-2);
}

.ortho-reg-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--reg-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.05s;
}

.ortho-reg-submit:hover {
    opacity: 0.92;
}

.ortho-reg-submit:active {
    transform: translateY(1px);
}

.ortho-reg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ortho-reg-status {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.ortho-reg-status.is-saving {
    display: block;
    background: #f3f4f6;
    color: var(--reg-muted);
}

.ortho-reg-status.is-success {
    display: block;
    background: rgba(22, 163, 74, 0.1);
    color: var(--reg-success);
}

.ortho-reg-status.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--reg-danger);
}

.ortho-error-message {
    max-width: 560px;
    margin: 24px auto;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
