/* ══ Auth Pages: Login & Register (Split-Panel Layout) ══ */

/* ── Brand Overlay ── */
.auth-page {
    position: relative;
}

.auth-page .auth-brand-overlay {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    z-index: 10;
}

.auth-page .auth-brand-overlay .auth-brand-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #fff;
    text-decoration: none;
}

.auth-page .auth-brand-overlay .auth-brand-link:hover {
    color: #fff;
    text-decoration: none;
}

.auth-page .auth-brand-overlay .brand-accent {
    color: var(--accent-yellow);
}

/* ── Layout ── */
.auth-page .auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Aside Panel (left) ── */
.auth-page .auth-aside {
    display: none;
    flex: 0 0 40%;
    max-width: 40%;
    background: #1a1a3e;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    height: 100vh;
}

@media (min-width: 768px) {
    .auth-page .auth-aside {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .auth-page .auth-aside {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

.auth-page .auth-aside-img {
    max-width: 280px;
    width: 80%;
    height: auto;
    border-radius: 0.75rem;
}

.auth-page .auth-aside-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.auth-page .auth-aside-brand .brand-accent {
    color: var(--accent-yellow);
}

.auth-page .auth-aside-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 260px;
}

/* ── Form Panel (right) ── */
.auth-page .auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
}

.auth-page .auth-form-content {
    width: 100%;
    max-width: 400px;
}

.auth-page .auth-heading {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-page .auth-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Provider Buttons ── */
.auth-page .auth-providers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-page .auth-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem calc(1.25rem + 20px);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
}

.auth-page .auth-provider-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-page .auth-provider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.auth-page .auth-provider-btn svg {
    position: absolute;
    left: calc(50% - 65px);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-page .auth-provider-btn .coming-soon {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    margin-left: auto;
}

/* Provider colors */
.auth-page .btn-discord {
    background: #5865F2;
    color: #fff;
}

.auth-page .btn-steam {
    background: #171a21;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-page .btn-google {
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.auth-page .btn-facebook {
    background: #1877F2;
    color: #fff;
}

.auth-page .btn-microsoft {
    background: #2F2F2F;
    color: #fff;
}

/* ── Register Form ── */
.auth-page .auth-register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-page .auth-register-form .form-control[readonly] {
    opacity: 0.7;
}

.auth-page .terms-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-page .terms-row .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-top: 0;
    margin-right: 0.5rem;
}

.auth-page .terms-row label {
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-page .terms-row a {
    color: var(--accent-blue);
    text-decoration: underline;
    cursor: pointer;
}

.auth-page .btn-register {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    width: 100%;
}

.auth-page .btn-register:hover:not(:disabled) {
    background: #0c8ec5;
}

.auth-page .btn-register:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Terms Modal ── */
.auth-page .terms-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-page .terms-modal .modal-body h5 {
    color: var(--text-primary);
    margin-top: 1rem;
}

/* ── Error Alert ── */
.auth-page .auth-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── Provider Badge (register page) ── */
.auth-page .provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── Merge Confirmation ── */
.auth-page .merge-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-page .merge-section {
    margin-bottom: 0.5rem;
}

.auth-page .merge-section:last-child {
    margin-bottom: 0;
}

.auth-page .merge-section-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.auth-page .merge-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.auth-page .merge-detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-page .merge-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-page .merge-arrow {
    text-align: center;
    color: var(--accent-blue);
    font-size: 1.25rem;
    padding: 0.25rem 0;
}

.auth-page .merge-question {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-page .merge-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-page .btn-merge-confirm {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
}

.auth-page .btn-merge-confirm:hover {
    background: #0c8ec5;
}

.auth-page .btn-merge-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.2s;
}

.auth-page .btn-merge-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}
