﻿:root {
    --telegram-blue: #0088cc;
    --telegram-light-blue: #40a7e3;
    --telegram-dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #0088cc 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(173, 216, 255, 0.4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(30, 60, 114, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(173, 216, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 45px rgba(0, 136, 204, 0.2);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.telegram-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0088cc, #40a7e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(64, 167, 227, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.telegram-logo i {
    color: white;
    font-size: 36px;
}

.app-title {
    text-align: center;
    margin-bottom: 30px;
}

    .app-title h1 {
        color: white;
        font-weight: 700;
        font-size: 2.1rem;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .app-title .subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        font-weight: 400;
    }

.form-floating {
    margin-bottom: 20px;
}

    .form-floating .form-control {
        background: rgba(173, 216, 255, 0.1);
        border: 2px solid rgba(173, 216, 255, 0.3);
        border-radius: 16px;
        color: white;
        font-size: 16px;
        padding: 20px 16px;
        transition: all 0.3s ease;
    }

        .form-floating .form-control:focus {
            background: rgba(173, 216, 255, 0.2);
            border-color: #40a7e3;
            box-shadow: 0 0 0 3px rgba(64, 167, 227, 0.3);
            transform: translateY(-2px);
        }

        .form-floating .form-control::placeholder {
            color: transparent;
        }

    .form-floating label {
        color: rgba(173, 216, 255, 0.8);
        font-weight: 500;
        padding-left: 16px;
        font-size:15px;
        transition: all 0.3s ease;
    }

    .form-floating .form-control:focus + label,
    .form-floating .form-control:not(:placeholder-shown) + label {
        color: #FFF;
        transform: scale(0.9) translateY(-0.5rem);
        font-size: 12px;
    }

    .form-floating > .form-control-plaintext ~ label::after, .form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-select ~ label::after {
        background-color: transparent;
    }


.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0088cc, #40a7e3);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(64, 167, 227, 0.5);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn .btn-text {
        position: relative;
        z-index: 2;
    }

    .login-btn::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;
    }

    .login-btn:hover::before {
        left: 100%;
    }

.footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: rgba(173, 216, 255, 0.1);
    border: 1px solid rgba(173, 216, 255, 0.3);
    border-radius: 12px;
    color: rgba(173, 216, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .social-btn:hover {
        background: rgba(173, 216, 255, 0.2);
        color: white;
        transform: translateY(-2px);
    }

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

    .forgot-password a {
        color: #40a7e3;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .forgot-password a:hover {
            color: #87ceeb;
            text-shadow: 0 0 8px #40a7e3;
        }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 24px;
        margin: 10px;
    }

    .app-title h1 {
        font-size: 1.8rem;
    }

    .telegram-logo {
        width: 60px;
        height: 60px;
    }

        .telegram-logo i {
            font-size: 32px;
        }
}

/* Loading state */
.loading .login-btn {
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
