/* Giriş / qeydiyyat / şifrə bərpası səhifələri */
.sc-auth-heading { text-align: center; padding: 36px 20px 24px; }
.sc-auth-heading h1 { margin: 0 0 8px; font-family: var(--sc-font-heading); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.sc-auth-heading p { margin: 0 auto; max-width: 640px; font-size: 14.5px; color: var(--sc-text-muted); }

.sc-auth-section { display: flex; justify-content: center; padding: 0 0 48px; }
.sc-auth-card { width: 100%; max-width: 440px; padding: 32px 34px; }
.sc-auth-card--wide { max-width: 760px; }

.sc-auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.sc-auth-password { position: relative; }
.sc-auth-password .sc-auth-input { padding-right: 46px; }
.sc-auth-password__toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: transparent; color: var(--sc-text-muted); cursor: pointer;
}
.sc-auth-password__toggle:hover { color: var(--sc-text); background: var(--sc-surface-2); }

.sc-auth-alert { display: block; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.sc-auth-alert--success { color: var(--sc-success); background: var(--sc-success-bg); }
.sc-auth-alert--error { color: #dc2626; background: #fdeaea; }

.sc-auth-agree { margin-bottom: 22px; }
.sc-auth-agree a { color: var(--sc-accent); font-weight: 700; }
.sc-auth-agree a:hover { color: var(--sc-accent-dark); }

.sc-auth-field { margin-bottom: 18px; }
.sc-auth-field--collapsed { display: none; }
.sc-auth-field > label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: var(--sc-text-muted); }
.sc-auth-input {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 14px;
    border: 2px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-text);
    font-size: 15px; font-weight: 600;
    outline: none; transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.sc-auth-input:focus { border-color: var(--sc-accent); box-shadow: var(--sc-focus-ring); }
.sc-auth-error { display: block; margin-top: 6px; font-size: 12.5px; color: #dc2626; }
.sc-auth-error[hidden] { display: none; }

select.sc-auth-input {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.sc-auth-icon-input { position: relative; }
.sc-auth-icon-input__icon {
    position: absolute; top: 50%; left: 18px; transform: translateY(-50%);
    color: var(--sc-text-muted); pointer-events: none;
}
.sc-auth-icon-input .sc-auth-input { padding-left: 48px; }
.sc-auth-icon-input .sc-auth-password__toggle { right: 14px; }

.sc-auth-phone { position: relative; }
.sc-auth-phone__prefix {
    position: absolute; top: 50%; left: 18px; transform: translateY(-50%);
    font-weight: 700; color: var(--sc-text); pointer-events: none;
}
.sc-auth-phone .sc-auth-input { padding-left: 62px; }
.sc-auth-phone.is-invalid .sc-auth-input { border-color: #dc2626; }

.sc-otp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sc-otp__box {
    height: 56px; padding: 0; text-align: center;
    font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.sc-otp-resend { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--sc-line); }
.sc-otp-resend__button {
    min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--sc-radius);
    background: transparent; color: var(--sc-accent); font-weight: 700; cursor: pointer;
}
.sc-otp-resend__button:hover:not(:disabled) { color: var(--sc-accent-dark); background: rgba(255, 84, 83, .1); }
.sc-otp-resend__button:disabled { cursor: progress; opacity: .75; }

.sc-auth-toggle {
    display: flex; padding: 4px; border-radius: 14px;
    background: var(--sc-surface); border: 1px solid var(--sc-border);
}
.sc-auth-toggle__option { position: relative; flex: 1; display: flex; cursor: pointer; }
.sc-auth-toggle__option input { position: absolute; opacity: 0; pointer-events: none; }
.sc-auth-toggle__option span {
    display: flex; align-items: center; justify-content: center; flex: 1;
    padding: 9px 18px; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--sc-text-muted);
    font-family: 'Montserrat', var(--sc-font-body);
}
.sc-auth-toggle__option input:checked + span {
    background: linear-gradient(135deg, var(--sc-accent), var(--sc-accent-dark));
    color: #fff; box-shadow: 0 8px 16px rgba(255, 84, 83, .3);
}
.sc-auth-toggle__option input:focus-visible + span { outline: 3px solid rgba(255, 84, 83, .4); }

/* smartrent2-dən köçürülmüş axtarışlı seçim (public/js/searchable-select.js ilə birgə işləyir) */
.ss { position: relative; }

.ss-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    text-align: left; cursor: pointer;
}
.ss-value { display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-placeholder { color: var(--sc-text-muted); font-weight: 500; }
.ss-chevron { flex: none; width: 18px; height: 18px; color: var(--sc-text-muted); }
.ss-trigger[aria-expanded="true"] { border-color: var(--sc-accent); box-shadow: var(--sc-focus-ring); }
.ss-trigger[aria-expanded="true"] .ss-chevron { transform: rotate(180deg); }

.ss-panel {
    position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
    padding: 8px; border-radius: 16px;
    background: var(--sc-surface); border: 1px solid var(--sc-border);
    box-shadow: 0 18px 40px rgba(8, 20, 50, .22);
}
.ss-panel.ss-up { top: auto; bottom: calc(100% + 6px); }

.ss-search {
    width: 100%; height: 40px; padding: 0 12px; margin: 0 0 6px;
    border: 2px solid var(--sc-line); border-radius: 12px;
    background: var(--sc-surface); color: var(--sc-text); font-weight: 600; outline: none;
}
.ss-search:focus { border-color: var(--sc-accent); }

.ss-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; font-family: 'Montserrat', var(--sc-font-body); }
.ss-list li { padding: 10px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.ss-list li:hover, .ss-list li.active { background: rgba(255, 84, 83, .14); }
.ss-list li.selected { color: var(--sc-accent-dark); font-weight: 800; background: rgba(255, 84, 83, .08); }
.ss-list li.selected.active, .ss-list li.selected:hover { background: rgba(255, 84, 83, .22); }
.ss-list li.muted { color: var(--sc-text-muted); font-weight: 500; }
.ss-list li.ss-empty { color: var(--sc-text-muted); cursor: default; text-align: center; }

.sc-auth-row { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 20px; }
.sc-auth-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--sc-text-muted); cursor: pointer; }
.sc-auth-checkbox input { width: 16px; height: 16px; accent-color: var(--sc-accent); cursor: pointer; }
.sc-auth-forgot { font-size: 13.5px; font-weight: 700; color: var(--sc-accent); }
.sc-auth-forgot:hover { color: var(--sc-accent-dark); }

.sc-auth-submit {
    width: 100%; height: 52px; font-size: 15px; border-radius: 14px;
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.sc-auth-submit.sc-btn--primary {
    background: linear-gradient(135deg, var(--sc-accent), var(--sc-accent-dark));
    box-shadow: 0 12px 24px rgba(255, 84, 83, .36);
}
.sc-auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sc-auth-submit:active { transform: translateY(1px); }

.sc-auth-divider { position: relative; display: flex; justify-content: center; margin: 24px 0 18px; }
.sc-auth-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--sc-border); }
.sc-auth-divider span { position: relative; padding: 0 14px; background: var(--sc-surface); font-size: 13px; color: var(--sc-text-muted); }

@media (max-width: 640px) {
    .sc-auth-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sc-auth-card { padding: 26px 20px; }
    .sc-auth-heading { padding: 20px 20px 4px; }
    .sc-auth-section { padding: 0 0 28px; }
}
