.auth-page .site-footer {
    margin-top: 0;
}

.auth-main {
    padding: 140px 0 70px;
    min-height: 100vh;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.auth-side-panel,
.auth-card,
.role-select-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.auth-side-panel {
    overflow: hidden;
    position: relative;
    min-height: 100%;
}

.auth-side-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.12)),
        url("../images/backgrounds/auth-bg.jpg") center/cover no-repeat;
    opacity: 0.45;
}

.auth-side-inner {
    position: relative;
    z-index: 2;
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-mini-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-side-inner h2,
.auth-header-block h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.auth-side-inner p,
.auth-header-block p {
    color: var(--muted);
    margin-bottom: 22px;
}

.auth-feature-list {
    display: grid;
    gap: 18px;
}

.auth-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

body:not(.theme-dark) .auth-feature-item {
    background: rgba(255, 255, 255, 0.76);
}

.auth-feature-item i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    flex-shrink: 0;
}

.auth-feature-item h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.auth-feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-card {
    padding: 34px;
}

.auth-header-block {
    margin-bottom: 22px;
}

.auth-header-block.centered {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header-block.centered .auth-mini-badge {
    align-self: center;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
}

.input-shell {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: 0 16px;
}

.input-shell i {
    color: var(--muted);
    flex-shrink: 0;
}

.input-shell input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
}
.input-shell select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    appearance: none;
}
.input-shell select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    appearance: none;
}
.input-shell select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    appearance: none;
    cursor: pointer;
}

/* Dropdown options (IMPORTANT FIX) */
.input-shell select option {
    background: #0b1931;   /* dark background */
    color: #ffffff;        /* visible text */
}

/* Light mode fix */
body:not(.theme-dark) .input-shell select option {
    background: #ffffff;
    color: #0e1b33;
}
.input-shell select option:hover {
    background: #8b5cf6;
    color: #fff;
}

.password-toggle {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
}

.form-row-inline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-line {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.checkbox-full {
    width: 100%;
}

.checkbox-line input {
    margin-top: 3px;
}

.muted-link {
    color: var(--primary);
    font-weight: 600;
}

.form-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--text);
}

.auth-submit-btn {
    width: 100%;
    min-height: 56px;
}

.auth-bottom-text {
    text-align: center;
    color: var(--muted);
}

.auth-bottom-text a {
    color: var(--primary);
    font-weight: 700;
}

/* Role cards */
.role-page {
    padding: 145px 0 80px;
}

.role-select-wrap {
    padding: 38px;
}

.role-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.role-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface-2);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.role-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.role-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.role-card p {
    color: var(--muted);
    margin-bottom: 16px;
}

.role-card ul {
    margin: 0 0 20px 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    flex: 1;
}

.role-btn {
    width: 100%;
}