@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --main-color: #C66124;
    --main-color-transparent: #3C2802;
    --primary-color: #1A1A1A;
    --secondary-color: #262626;
    --text-color: #FFFFFF;
    --note-color: #656464;
    --danger-color: #DC3545;
    --gradient-color: #00000A;
    --success-color: #28a745;
    --steam-primary: #171a21;
    --steam-secondary: #2a475e;
    --steam-accent: #66c0f4;
    --discord-primary: #5865F2;
    --discord-secondary: #7289da;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-color) 100%);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(198, 97, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 97, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(198, 97, 36, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198, 97, 36, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo img {
    width: 60px!important;
    border-radius: 8px;
    border: 2px solid var(--main-color);
    padding: 5px;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(198, 97, 36, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background: rgba(198, 97, 36, 0.1);
    color: var(--main-color);
}

#logincontent {
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.verification-header {
    text-align: center;
    margin-bottom: 3rem;
}

.verification-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--main-color), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.verification-header p {
    color: var(--note-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), #ff8c42);
    transition: width 0.5s ease;
    border-radius: 2px;
    width: 0%;
}

.steps-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    background: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(198, 97, 36, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), transparent);
    opacity: 0.7;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 97, 36, 0.15);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Button Styles */
.auth-button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-button:hover::before {
    left: 100%;
}

.steam-button {
    background: linear-gradient(135deg, var(--steam-primary), var(--steam-secondary));
    color: white;
    border: 2px solid var(--steam-accent);
}

.steam-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--steam-secondary), var(--steam-primary));
    box-shadow: 0 8px 25px rgba(102, 192, 244, 0.3);
    transform: translateY(-2px);
}

.discord-button {
    background: linear-gradient(135deg, var(--discord-primary), var(--discord-secondary));
    color: white;
    border: 2px solid var(--discord-primary);
}

.discord-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--discord-secondary), var(--discord-primary));
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.steam-group-button {
    background: linear-gradient(135deg, var(--main-color), #ff8c42);
    color: white;
    border: 2px solid var(--main-color);
}

.steam-group-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c42, var(--main-color));
    box-shadow: 0 8px 25px rgba(198, 97, 36, 0.4);
    transform: translateY(-2px);
}

.auth-button:disabled {
    background: var(--secondary-color) !important;
    color: var(--note-color) !important;
    border-color: var(--note-color) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.auth-button:disabled::before {
    display: none;
}

.auth-button i {
    font-size: 1.5rem;
}

/* User Info Display */
.user-info {
    background: rgba(60, 40, 2, 0.3);
    border: 1px solid var(--main-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--note-color);
    font-size: 0.95rem;
}

.info-value {
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(198, 97, 36, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(198, 97, 36, 0.3);
}

/* Success State */
.step.completed {
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(40, 167, 69, 0.05);
}

.step.completed::before {
    background: linear-gradient(90deg, var(--success-color), transparent);
}

.step.completed .step-number {
    background: var(--success-color);
    animation: successPulse 2s ease-in-out;
}

.step.completed:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Loading Animation */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    nav ul {
        gap: 1rem;
    }

    #logincontent {
        margin-top: 40px;
        padding: 1rem;
    }

    .verification-header h1 {
        font-size: 2rem;
    }

    .verification-header p {
        font-size: 1rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .auth-button {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .auth-button i {
        font-size: 1.3rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-value {
        width: 100%;
        text-align: center;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .logo img {
        width: 100px;
    }

    #logincontent {
        padding: 0.5rem;
        margin-top: 20px;
    }

    .verification-header {
        margin-bottom: 2rem;
    }

    .verification-header h1 {
        font-size: 1.8rem;
    }

    .step {
        padding: 1rem;
    }

    .steps-container {
        gap: 1.5rem;
    }

    .auth-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    nav ul li a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
}

.step {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-button:focus,
.auth-button:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

nav ul li a:focus,
nav ul li a:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .step {
        border-width: 2px;
    }
    
    .auth-button {
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .step {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
