/* Unified Auth - Use Site Colors (NO gradients) */

.auth-login-page,
.auth-register-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 40px;
    margin: 0;
}

.auth-login-card,
.auth-register-card {
    width: min(520px, 96vw);
    background: var(--card-bg);
    border-radius: 18px;
    padding: 26px 18px 22px;
    box-shadow: none;
    border: 1px solid var(--primary-gold-border);
}

.auth-register-card {
    width: min(760px, 96vw);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 18px;
}

.auth-card-title {
    color: var(--primary-gold);
    font-weight: 800;
    font-size: 18px;
}

.auth-card-line {
    width: 90px;
    height: 2px;
    background: var(--primary-gold);
    margin: 10px auto 0;
    border-radius: 999px;
    opacity: 0.75;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-login-form .auth-field,
.auth-register-form .auth-field {
    margin-bottom: 14px;
}

.auth-login-form .auth-field:last-child,
.auth-register-form .auth-field:last-child {
    margin-bottom: 0;
}

.auth-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 13px;
}

.auth-input {
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--primary-gold-border);
    background: var(--dark-bg-2);
    padding: 0 16px;
    color: var(--text-white);
    outline: none;
}

.auth-input::placeholder {
    color: var(--text-gray);
}

.auth-error {
    color: rgba(255, 120, 120, 0.95);
    font-weight: 600;
    font-size: 12px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 6px;
}

.auth-row--login {
    justify-content: space-between;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 13px;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-gold);
}

.auth-link {
    color: var(--primary-gold);
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
}

.auth-link--muted {
    color: var(--text-gray);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--primary-gold);
    color: var(--text-white);
    font-weight: 900;
    font-size: 15px;
    margin-top: 10px;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 10px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 800;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--primary-gold-border);
    flex: 1;
}

.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dark-bg-2);
    border: 1px solid var(--primary-gold-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.auth-social-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

.auth-social-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.auth-foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-register-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.auth-sms {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-sms__label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 13px;
}

.auth-toggle {
    position: relative;
    width: 42px;
    height: 22px;
    display: inline-flex;
}

.auth-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-toggle__track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--primary-gold-soft);
    position: relative;
    transition: background 0.2s ease;
}

.auth-toggle__track::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-white);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.auth-toggle input:checked + .auth-toggle__track {
    background: var(--primary-gold);
}

.auth-toggle input:checked + .auth-toggle__track::after {
    transform: translateX(20px);
}

/* Role selection page (white card like screenshot - solid shapes only) */
.auth-role-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.auth-role-card {
    width: min(420px, 96vw);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.auth-role-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: #e6dac6;
    transform: rotate(35deg);
}

.auth-role-card::after {
    content: "";
    position: absolute;
    top: -60px;
    left: 50px;
    width: 120px;
    height: 120px;
    background: #efe5d4;
    transform: rotate(35deg);
}

.auth-role-title {
    position: relative;
    z-index: 1;
    text-align: right;
    font-weight: 900;
    color: var(--dark-bg);
    font-size: 18px;
    margin-bottom: 16px;
}

.auth-role-options {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-role-inline {
    margin-bottom: 18px;
}

.auth-role-inline__label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.auth-role-options--inline {
    margin-bottom: 0;
    gap: 10px;
}

.auth-role-option {
    cursor: pointer;
    user-select: none;
}

.auth-role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-role-box {
    border: 1px solid rgba(42, 53, 57, 0.14);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.auth-register-card .auth-role-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.auth-register-card .auth-role-icon {
    color: rgba(255, 255, 255, 0.95);
}

.auth-register-card .auth-role-label {
    color: rgba(255, 255, 255, 0.92);
}

.auth-login-card .auth-role-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.auth-login-card .auth-role-icon {
    color: rgba(255, 255, 255, 0.95);
}

.auth-login-card .auth-role-label {
    color: rgba(255, 255, 255, 0.92);
}

.auth-login-card .auth-role-option input:checked + .auth-role-box {
    background: var(--primary-gold-soft);
    border-color: var(--primary-gold);
}

.auth-register-card .auth-role-option input:checked + .auth-role-box {
    background: var(--primary-gold-soft);
    border-color: var(--primary-gold);
}

.auth-role-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gold-soft);
    color: var(--dark-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-role-icon svg {
    width: 22px;
    height: 22px;
}

.auth-role-label {
    font-weight: 900;
    color: var(--dark-bg);
    font-size: 13px;
    text-align: center;
}

.auth-role-option input:checked + .auth-role-box {
    border-color: var(--primary-gold);
    box-shadow: none;
}

.auth-role-confirm {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--primary-gold);
    color: var(--text-white);
    font-weight: 900;
    font-size: 15px;
}

@media (max-width: 680px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
}
