* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #212121    ;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
}

.description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.auth-section {
    margin-bottom: 30px;
}

.auth-btn {
    width: 200px;
    height: 62px;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #100720;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2%);
    filter: blur(15px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 94, 247, 0.4);
}

.auth-btn:active {
    transform: scale(0.9) rotate(3deg);
    background: radial-gradient(circle farthest-corner at 10% 20%, rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2%);
    transition: 0.5s;
}

.auth-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    background: #2d5a27;
}

.auth-btn:disabled::after {
    background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(76,175,80,0.8) 17.8%, rgba(56,142,60,0.8) 100.2%);
    filter: blur(15px) opacity(0.7);
}

.btn-text, .btn-loader {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.result-section {
    margin-bottom: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.result-message.show {
    opacity: 1;
    transform: translateY(0);
}

.result-message.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.result-message.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.result-message.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.status-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.status-display {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.status-display.authenticated {
    background: linear-gradient(135deg, #e8f5e8, #f1f8f1);
    border-color: #4caf50;
}

.status-label {
    font-weight: 600;
    color: #333;
    white-space: pre-line;
    line-height: 1.4;
}

.status-display.authenticated .status-label {
    color: #2e7d32;
}

/* Ad Container Styles */
.ad-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ad-container.ad-top {
    margin-bottom: 20px;
}
.ad-container.ad-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}
.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.ad-container iframe {
    max-width: 100%;
    border: none;
    border-radius: 5px;
}
.ad-container script {
    display: block;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#logoutBtn::after {
    background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(244,67,54,0.8) 17.8%, rgba(211,47,47,0.8) 100.2%);
}

@media (max-width: 600px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .auth-btn {
        width: 180px;
        height: 55px;
        font-size: 0.9rem;
    }
} 