/* Authentication page styles */

.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.auth-container {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-content h2 {
    color: #10b981;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.auth-description {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sso-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sso-btn:active:not(:disabled) {
    transform: translateY(0);
}

.sso-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sso-btn.google {
    border-color: #4285F4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
}

.sso-btn.google:hover:not(:disabled) {
    border-color: #4285F4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.1));
}

.sso-btn.github {
    border-color: #333;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.1), rgba(51, 51, 51, 0.05));
}

.sso-btn.github:hover:not(:disabled) {
    border-color: #555;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.2), rgba(51, 51, 51, 0.1));
}

.sso-btn.discord {
    border-color: #5865F2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
}

.sso-btn.discord:hover:not(:disabled) {
    border-color: #5865F2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
}

.sso-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.coming-soon {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.auth-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.auth-note p {
    margin: 4px 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 20px;
}

.back-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #10b981;
}

.auth-error {
    margin-bottom: 20px;
}

/* User menu styles for navigation */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-trigger:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: #e2e8f0;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 8px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .auth-container {
        padding: 24px;
        margin: 0 16px;
    }

    .auth-content h2 {
        font-size: 1.5rem;
    }

    .auth-description {
        font-size: 1rem;
    }

    .sso-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .username {
        max-width: 80px;
    }

    .user-menu-dropdown {
        right: -20px;
        min-width: 180px;
    }
}