/* Authentication Page Styles */

.auth-section {
    min-height: calc(100vh - 200px);
    padding: 80px 20px;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Auth Buttons */
.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-btn-icon svg {
    width: 24px;
    height: 24px;
}

.auth-btn-content {
    flex: 1;
}

.auth-btn-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-btn-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.auth-btn-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.auth-btn:hover .auth-btn-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Platform-Specific Colors */
.auth-btn.steam {
    border-color: #171a21;
}

.auth-btn.steam:hover {
    border-color: #66c0f4;
    box-shadow: 0 10px 30px rgba(102, 192, 244, 0.3);
}

.auth-btn.steam .auth-btn-icon svg {
    color: #66c0f4;
}

.auth-btn.discord {
    border-color: #5865f2;
}

.auth-btn.discord:hover {
    border-color: #5865f2;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.auth-btn.discord .auth-btn-icon svg {
    color: #5865f2;
}

.auth-btn.epic {
    border-color: #313131;
}

.auth-btn.epic:hover {
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.auth-btn.epic .auth-btn-icon svg {
    color: #ffffff;
}

/* Auth Info */
.auth-info {
    text-align: center;
    margin-top: 2rem;
}

.auth-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.auth-note strong {
    color: var(--text-primary);
}

.auth-terms {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.auth-terms a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-terms a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Account Links Section */
.account-links-container {
    max-width: 800px;
    width: 100%;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.account-links-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.account-links-grid {
    display: grid;
    gap: 1rem;
}

.account-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-link-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.account-link-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.account-link-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.account-link-details {
    flex: 1;
}

.account-link-platform {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.account-link-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.account-link-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 1rem;
}

.account-link-status.linked {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.account-link-status.not-linked {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.account-link-actions {
    display: flex;
    gap: 0.5rem;
}

.account-link-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Loading State */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-btn.loading .auth-btn-arrow::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .auth-btn {
        padding: 1rem 1.25rem;
    }

    .auth-btn-icon {
        width: 36px;
        height: 36px;
    }

    .auth-btn-icon svg {
        width: 20px;
        height: 20px;
    }

    .account-link-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .account-link-actions {
        width: 100%;
        justify-content: stretch;
    }

    .account-link-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 60px 15px;
    }

    .auth-container {
        padding: 1.5rem 1rem;
    }

    .auth-btn-title {
        font-size: 0.95rem;
    }

    .auth-btn-subtitle {
        font-size: 0.8rem;
    }
}

