:root {
    --bg-deep: #0e0f14;
    --text-light: #f0f0f5;
    --accent: #08c;
    --g-glow: #db4437;
    --tw-glow: #fff;
    --apple-glow: #c0c0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    background: var(--bg-deep);
    color: var(--text-light);
    font-family: "Assistant", sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/images/loginbg-blue.webp") no-repeat center center;
    background-size: cover;
    z-index: 0; /* push it below actual content */
    pointer-events: none;
}

.avatar-bubble {
    width: clamp(100px, 30vw, 170px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.2) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 1;
}

.login-box {
    padding: 2.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    background-color: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    min-height: 100vh;
    padding-bottom: 3rem; /* add space for scrolling */
    z-index: 3;
}

.login-hero h1 {
    font-family: "Signika Negative", sans-serif;
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    text-shadow:
        0 2px 12px rgba(255, 255, 255, 0.15),
        0 0 4px rgba(0, 0, 0, 0.25);
}

img[src*="logo_white.png"] {
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.1));
}

.login-hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

button,
.btn {
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}

button:active,
.btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    min-width: 260px;
    min-height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    cursor: pointer;
    will-change: transform;
    z-index: 5;
}

.btn i {
    font-size: 1.3rem;
    transform: translateY(-1px);
}

/* Highlighted Apple Login */
.btn-primary {
    background: #fff;
    color: #000;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    transform: translateY(0);
}
.btn-primary:hover {
    filter: brightness(1.05);
    transform: scale(1.03);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Other buttons */
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 transparent;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

/* Brand hover glows */
.btn-secondary--telegram:hover {
    box-shadow: 0 0 14px var(--accent);
}
.btn-secondary--ton:hover {
    box-shadow: 0 0 14px #0daae4;
}
.btn-secondary--google:hover {
    box-shadow: 0 0 14px var(--g-glow);
}
.btn-secondary--apple:hover {
    box-shadow: 0 0 14px var(--apple-glow);
}
.btn-secondary--twitter:hover {
    box-shadow: 0 0 14px var(--tw-glow);
}

.login-highlight {
    margin-bottom: 2rem;
}

.alt-text {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 1.2rem 0 0.5rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    margin-top: 1.5rem;
}

.pink_blur_1 {
    position: fixed;
    background: #ff81f9;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    top: 140px;
    left: 50%;
    margin-left: -200px;
    z-index: 2;
}
.pink_blur_2 {
    position: fixed;
    background: #ff81f9;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    bottom: 540px;
    right: 50%;
    margin-right: -360px;
    z-index: 4;
}
.pink_blur_3 {
    position: fixed;
    background: #ff81f9;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    bottom: 80px;
    right: 50%;
    margin-right: -220px;
    z-index: 2;
}

.pink_1 {
    position: fixed;
    background: #ff81f9;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    bottom: 20px;
    left: 50%;
    margin-left: -280px;
    z-index: 2;
}
.pink_2 {
    position: fixed;
    background: #ff81f9;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    bottom: 140px;
    right: 50%;
    margin-right: -180px;
    z-index: 4;
}
.pink_3 {
    position: fixed;
    background: #ff81f9;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    bottom: 400px;
    right: 50%;
    margin-right: -340px;
    z-index: 2;
}

.pink_decoration_1 {
    position: fixed;
    background: url("/images/decoration/pink_1.png");
    background-size: 100% auto;
    width: 100px;
    top: 11%;
    left: 60%;
    height: 100px;
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

.blue_blur_1 {
    position: fixed;
    background: #1eeef8;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    bottom: 160px;
    left: 50%;
    margin-left: -220px;
    z-index: 2;
}
.blue_blur_2 {
    position: fixed;
    background: #1eeef8;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    bottom: 440px;
    right: 50%;
    margin-right: -440px;
    z-index: 2;
}
.blue_blur_3 {
    position: fixed;
    background: #1eeef8;
    width: 50px;
    height: 50px;
    border-radius: 80px;
    filter: blur(20px);
    top: 50px;
    right: 50%;
    margin-right: -80px;
    z-index: 2;
}

.blue_1 {
    position: fixed;
    background: #1eeef8;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    bottom: 50px;
    left: 50%;
    margin-left: -200px;
    z-index: 2;
}
.blue_2 {
    position: fixed;
    background: #1eeef8;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    bottom: 530px;
    left: 50%;
    margin-left: -160px;
    z-index: 2;
}
.blue_3 {
    position: fixed;
    background: #1eeef8;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    bottom: 190px;
    right: 50%;
    margin-right: -280px;
    z-index: 2;
}

.blue_decoration_1 {
    position: fixed;
    background: url("/images/decoration/blue_1.png");
    background-size: 100% auto;
    width: 110px;
    height: 110px;
    bottom: 180px;
    right: 20%;
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

.yellow_blur_1 {
    position: fixed;
    background: #fff5a3;
    width: 80px;
    height: 80px;
    border-radius: 80px;
    filter: blur(33px);
    bottom: 560px;
    left: 50%;
    margin-left: -380px;
    z-index: 4;
}
.yellow_blur_2 {
    position: fixed;
    background: #fff5a3;
    width: 80px;
    height: 80px;
    border-radius: 80px;
    filter: blur(33px);
    bottom: -10px;
    left: 50%;
    margin-left: -90px;
    z-index: 2;
}
.yellow_blur_3 {
    position: fixed;
    background: #fff5a3;
    width: 80px;
    height: 80px;
    border-radius: 80px;
    filter: blur(33px);
    bottom: 260px;
    right: 50%;
    margin-right: -350px;
    z-index: 2;
}

.yellow_1 {
    position: fixed;
    background: #fff5a3;
    width: 6px;
    height: 6px;
    border-radius: 50px;
    bottom: 40px;
    left: 50%;
    margin-left: -160px;
    z-index: 4;
}
.yellow_2 {
    position: fixed;
    background: #fff5a3;
    width: 6px;
    height: 6px;
    border-radius: 50px;
    top: 100px;
    left: 50%;
    margin-left: -180px;
    z-index: 4;
}
.yellow_3 {
    position: fixed;
    background: #fff5a3;
    width: 6px;
    height: 6px;
    border-radius: 50px;
    top: 70px;
    right: 50%;
    margin-right: -140px;
    z-index: 4;
}

.yellow_decoration_1 {
    position: fixed;
    background: url("/images/decoration/yellow_2.png");
    background-size: 100% auto;
    width: 110px;
    height: 110px;
    top: 260px;
    left: 20%;
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 600px) {
    .pink_decoration_1 {
        top: 4%;
    }

    .yellow_decoration_1 {
        left: 0%;
    }

    .blue_decoration_1 {
        right: 0%;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 600px) {
    .login-buttons {
        grid-template-columns: 1fr;
    }
}
