/* Authentication */
.auth-content {
    max-width: 400px;
    text-align: center;
}

.auth-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-providers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.auth-btn .icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
}

.auth-btn .icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-btn.google {
    background-color: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.auth-btn.google:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
}

.auth-btn.discord {
    background-color: #5865F2;
    color: white;
}

.auth-btn.discord:hover {
    background-color: #4752C4;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
    padding: 0 0.5rem;
}

.full-width {
    width: 100%;
}

/* User Menu & Dropdown */
.user-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-btn {
    padding: 2px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--chronicle-wax, #7a302d);
    color: #fffdf8;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    color: var(--chronicle-ink);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: slideIn 0.1s ease-out;
}

.dropdown-header {
    padding: 0.75rem 0.75rem 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-header .meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.dropdown-menu button:hover {
    background: var(--bg-hover);
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.25rem 0;
}

.dropdown-menu button.danger-text {
    color: var(--error-color);
}

.dropdown-menu button.danger-text:hover {
    background: rgba(157, 52, 48, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.landing-legal {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
}

.landing-legal a {
    color: inherit;
}
