/* Kiora - registration page styles (loaded after login.css, which gives the shared look) */

.register-page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 34px;
}

.login-card.register-card { max-width: 780px; padding: 34px; }

/* ---------- Account type cards ---------- */
.type-picker { min-width: 0; margin: 4px 0 22px; padding: 0; border: 0; }
.type-picker legend { margin-bottom: 9px; padding: 0; color: #F0E5D2; font-size: 13px; font-weight: 800; }

.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.type-card { position: relative; display: block; cursor: pointer; }

.type-card input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 16px 8px 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 15px;
    background: rgba(255, 255, 255, .04);
    transition: .2s ease;
}

.type-box svg { width: 28px; height: 28px; color: var(--gold-light); }
.type-box strong { color: #FFF8EA; font-size: 14px; }
.type-box small { color: rgba(255, 255, 255, .52); font-size: 11px; line-height: 1.55; }

.type-price {
    margin-top: 2px;
    padding: 3px 9px;
    color: #17160F;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.type-card:hover .type-box { border-color: rgba(224, 196, 125, .35); }

.type-card input:checked + .type-box {
    border-color: var(--gold-light);
    background: rgba(184, 134, 53, .15);
    box-shadow: 0 0 0 3px rgba(184, 134, 53, .12);
}

.type-card input:focus-visible + .type-box { outline: 3px solid rgba(224, 196, 125, .55); outline-offset: 3px; }

/* ---------- Form layout ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field[hidden], .form-note[hidden] { display: none; }

.field-hint { margin: 6px 2px 0; color: rgba(255, 255, 255, .42); font-size: 11px; line-height: 1.6; }
.req-note { color: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 700; }

/* Phone: fixed +968 box, then the number (always written left to right) */
.phone-wrapper { display: flex; direction: ltr; }

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #E9D6A7;
    border: 1px solid rgba(255, 255, 255, .10);
    border-right: 0;
    border-radius: 13px 0 0 13px;
    background: rgba(184, 134, 53, .10);
    font-size: 15px;
    font-weight: 900;
}

.phone-wrapper input { min-width: 0; border-radius: 0 13px 13px 0; }

/* The email and the registration number are also written left to right */
#email, #commercial_register { text-align: left; }
html[dir="rtl"] #email::placeholder, html[dir="rtl"] #commercial_register::placeholder { text-align: right; }

/* ---------- Password requirements ---------- */
.rules-title { margin: 0 0 8px; color: rgba(255, 255, 255, .62); font-size: 12px; }

.rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 14px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    line-height: 1.6;
}

.rules li::before { content: "○"; margin-inline-end: 7px; color: rgba(255, 255, 255, .35); }
.rules li.ok { color: #CDEBD6; }
.rules li.ok::before { content: "✓"; color: #8FD1A6; }

/* ---------- Terms + notes ---------- */
.check-field { margin: 2px 0 14px; }

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.7;
    cursor: pointer;
}

.check-row input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #B88635; cursor: pointer; }
.check-field.has-error .check-row { color: #F0A898; }

.form-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .62);
    border: 1px solid rgba(224, 196, 125, .14);
    border-radius: 11px;
    background: rgba(184, 134, 53, .07);
    font-size: 12px;
    line-height: 1.7;
}

.type-picker.has-error .type-box { border-color: rgba(200, 123, 105, .55); }

.register-footer { margin-top: 22px; color: rgba(255, 255, 255, .34); text-align: center; font-size: 11px; }
.register-footer strong { color: rgba(224, 196, 125, .75); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .login-card.register-card { padding: 24px 18px; border-radius: 22px; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .rules { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .type-box { transition: none; }
}