@import url('theme_new.css');

.rh-auth-page {
    padding-top: 130px;
    padding-bottom: 100px;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.rh-auth-error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid #ef4444;
    color: #fecaca;
    font-size: 13px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.rh-auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.rh-auth-card h2 { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 0 0 4px; }
.rh-auth-card .sub { color: var(--text-muted); font-size: 13px; margin: 0 0 22px; }

.rh-field { margin-bottom: 16px; }
.rh-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 6px;
    font-family: var(--font-display);
}
.rh-field input[type="text"],
.rh-field input[type="email"],
.rh-field input[type="password"],
.rh-field select,
.rh-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}
.rh-field select option { background: var(--bg-elevated); color: var(--text); }
.rh-field input:focus, .rh-field select:focus, .rh-field textarea:focus { border-color: var(--accent-purple); }
.rh-field textarea { min-height: 90px; resize: vertical; }

.rh-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 44px);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}
.rh-icon-option {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .7;
    transition: opacity .15s ease, border-color .15s ease;
}
.rh-icon-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-icon-option:hover { opacity: 1; }
.rh-icon-option.selected { opacity: 1; border-color: var(--accent-purple); }

.rh-auth-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.rh-auth-submit-row button {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.rh-auth-switch { color: var(--text-faint); font-size: 12px; text-decoration: none; }
.rh-auth-switch:hover { color: var(--text); }

@media (max-width: 500px) {
    .rh-auth-page { padding-top: 120px; }
}
