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

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

body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Header Navigation */
.container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(13, 13, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid #4ade80;
    padding: 2px;
    transition: all 0.3s ease;
}

.logo img:hover {
    border-color: #22c55e;
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Main Content */
#logincontent {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: 80px;
}

/* Header Text */
.header-text {
    margin-bottom: 40px;
    text-align: center;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    font-size: 16px;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
}

.header-text .success-message {
    color: #4ade80;
    font-weight: 500;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
}

/* Steps */
.step {
    margin-bottom: 32px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.step.completed {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.4);
}

.step.completed:hover {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.5);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    justify-content: center;
}

.step-title i.fa-check-circle {
    color: #4ade80;
    font-size: 22px;
}

.step-description {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Buttons */
.steamButton, .discordButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.steamButton {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.steamButton:hover:enabled {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(43, 71, 94, 0.4);
}

.discordButton {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.discordButton:hover:enabled {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.steamButton:disabled, .discordButton:disabled {
    background: rgba(100, 116, 139, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.steamButton i, .discordButton i {
    font-size: 20px;
}

/* Success States */
.steamInfo {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.steamInfo div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.steamInfo div:last-child {
    margin-bottom: 0;
}

.steamInfo .label {
    font-weight: 600;
    color: #4ade80;
    font-size: 14px;
}

.steamInfo .value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

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

    nav ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    #logincontent {
        margin-top: 120px;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .header-text h1 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 15px;
    }

    .step {
        padding: 20px;
        margin-bottom: 24px;
    }

    .step-title {
        font-size: 18px;
    }

    .steamButton, .discordButton {
        padding: 14px 20px;
        font-size: 15px;
    }

    .steamButton i, .discordButton i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    #logincontent {
        margin-top: 140px;
        padding: 24px 16px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .step-title {
        font-size: 16px;
    }
}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Smooth transitions */
.steamButton::before, .discordButton::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;
}

.steamButton:hover::before, .discordButton:hover::before {
    left: 100%;
}

/* Complete Page Styles */
.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 80px;
    color: #4ade80;
    animation: celebrateSuccess 0.8s ease-out;
}

@keyframes celebrateSuccess {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

/* Account Cards */
.account-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.account-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    transition: all 0.3s ease;
    min-width: 0; /* Prevents overflow */
    box-sizing: border-box;
}

.account-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.3);
}

.discord-card:hover {
    border-color: rgba(88, 101, 242, 0.5);
}

.steam-card:hover {
    border-color: rgba(43, 71, 94, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header i {
    font-size: 24px;
}

.discord-card .card-header i {
    color: #5865f2;
}

.steam-card .card-header i {
    color: #1b2838;
}

.card-header span {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.card-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.avatar-container {
    flex-shrink: 0;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.account-info {
    flex: 1;
}

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

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

.info-row .label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
}

.info-row .value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Next Steps */
.next-steps {
    margin-bottom: 40px;
}

.next-steps h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.next-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.next-step i {
    font-size: 20px;
    color: #4ade80;
    flex-shrink: 0;
}

.next-step span {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 400;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design for Complete Page */
@media (max-width: 768px) {
    .account-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .success-header h1 {
        font-size: 28px;
    }
    
    .success-subtitle {
        font-size: 16px;
    }
    
    .card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-row {
        justify-content: center;
        gap: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .success-icon i {
        font-size: 60px;
    }
    
    .success-header h1 {
        font-size: 24px;
    }
    
    .account-card {
        padding: 20px;
    }
    
    .card-header span {
        font-size: 16px;
    }
}