* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --gold-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-dark: #0f0c29;
    --bg-darker: #0a0714;
    --text-light: #ffffff;
    --text-gray: #b8b8d4;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.candle {
    position: absolute;
    width: 3px;
    background: linear-gradient(to top, #38ef7d, #11998e);
    animation: candleMove 8s infinite ease-in-out;
    opacity: 0.4;
}

.candle:nth-child(1) {
    left: 10%;
    height: 60px;
    animation-delay: 0s;
}

.candle:nth-child(2) {
    left: 30%;
    height: 80px;
    animation-delay: 1s;
    background: linear-gradient(to top, #ee0979, #ff6a00);
}

.candle:nth-child(3) {
    left: 50%;
    height: 100px;
    animation-delay: 2s;
}

.candle:nth-child(4) {
    left: 70%;
    height: 70px;
    animation-delay: 3s;
    background: linear-gradient(to top, #f093fb, #f5576c);
}

.candle:nth-child(5) {
    left: 90%;
    height: 90px;
    animation-delay: 4s;
}

@keyframes candleMove {
    0%, 100% {
        transform: translateY(100vh) scaleY(0.5);
    }
    50% {
        transform: translateY(-20px) scaleY(1.2);
    }
}

/* Login Container */
.login-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.main-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid transparent;
    background: linear-gradient(var(--bg-darker), var(--bg-darker)) padding-box,
                var(--primary-gradient) border-box;
    padding: 5px;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(102, 126, 234, 0.8);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.broker-logo {
    margin: 30px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.broker-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.login-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.glow-effect {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(102, 126, 234, 1);
    }
}

.developer-info {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 1s both;
}

.developer-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.developer-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.developer-info a:hover {
    color: #764ba2;
}

/* Telegram Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 20px;
}

.channel-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.modal-header h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.modal-text {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-subtext {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

.telegram-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
