﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Glitch&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #800020;
    --primary-light: rgba(128, 0, 32, 0.1);
    --text-color: #333;
    --text-light: #777;
    --bg-color: #f8f5f0;
    --white: #fafafa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
    font-family: 'inferno-l3npd';
    src: url('../fonts/inferno-l3npd.ttf') format('truetype');
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
    background-image: url('https://www.dropbox.com/scl/fi/8168e6fekr3hml30kihfs/flareLoginPage.jpg?rlkey=886s4eoec81l7ayxqvx7vm0b5&st=my286lmb&raw=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.3) 100%);
        z-index: 1;
    }

.login-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid transparent;
        border-radius: 15px;
        background: linear-gradient(45deg, var(--primary-color), #b30035) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.login-header {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}


.logo-container {
    width: 100px;
    height: 100px;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.3));
}

.logo {
    width: 100%;
    height: 100%;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
    overflow: visible;
    border-radius: 50%;
}

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: relative;
        z-index: 2;
    }

    .logo::before {
        content: '';
        position: absolute;
        top: -15%;
        left: -6%;
        right: -7%;
        bottom: -10%;
        background: radial-gradient(ellipse at 50% 100%, rgba(255, 200, 0, 0.25) 0%, rgba(255, 120, 0, 0.15) 30%, rgba(255, 50, 0, 0.08) 60%, transparent 85%);
        filter: blur(5px);
        clip-path: polygon(30% 0%, 70% 0%, 90% 30%, 100% 65%, 80% 90%, 50% 100%, 20% 90%, 0% 65%, 10% 30%);
        animation: flameFlicker 5s ease-in-out infinite alternate;
        z-index: 1;
        transform-origin: center bottom;
    }

    .logo::after {
        content: '';
        position: absolute;
        top: -12%;
        left: -5%;
        right: -5%;
        bottom: -7%;
        background: radial-gradient(ellipse at 50% 90%, rgba(255, 220, 0, 0.18) 0%, rgba(255, 150, 0, 0.12) 30%, rgba(255, 70, 0, 0.06) 60%, transparent 80%);
        filter: blur(6px);
        clip-path: polygon(40% 0%, 60% 0%, 80% 20%, 95% 50%, 85% 80%, 60% 100%, 40% 100%, 15% 80%, 5% 50%, 20% 20%);
        animation: flameFlicker2 6s ease-in-out infinite alternate;
        z-index: 0;
        transform-origin: center bottom;
    }

@keyframes flameFlicker {

    0%, 100% {
        clip-path: polygon(30% 0%, 70% 0%, 90% 30%, 100% 65%, 80% 90%, 50% 100%, 20% 90%, 0% 65%, 10% 30%);
        transform: scaleY(0.98) scaleX(0.98);
        opacity: 0.9;
    }

    25% {
        clip-path: polygon(32% 0%, 68% 0%, 87% 28%, 97% 62%, 83% 88%, 52% 100%, 22% 88%, 3% 62%, 13% 28%);
        transform: scaleY(0.96) scaleX(1.01);
        opacity: 0.95;
    }

    50% {
        clip-path: polygon(35% 0%, 65% 0%, 85% 25%, 95% 60%, 85% 85%, 55% 100%, 25% 85%, 5% 60%, 15% 25%);
        transform: scaleY(1.02) scaleX(0.95);
        opacity: 1;
    }

    75% {
        clip-path: polygon(33% 0%, 67% 0%, 88% 28%, 98% 62%, 82% 88%, 53% 100%, 23% 88%, 2% 62%, 12% 28%);
        transform: scaleY(0.99) scaleX(0.99);
        opacity: 0.92;
    }
}

@keyframes flameFlicker2 {

    0%, 100% {
        clip-path: polygon(40% 0%, 60% 0%, 80% 20%, 95% 50%, 85% 80%, 60% 100%, 40% 100%, 15% 80%, 5% 50%, 20% 20%);
        transform: scaleY(0.95) scaleX(1.01);
        opacity: 0.85;
    }

    25% {
        clip-path: polygon(41% 0%, 59% 0%, 79% 23%, 93% 53%, 82% 82%, 61% 100%, 39% 100%, 18% 82%, 7% 53%, 21% 23%);
        transform: scaleY(0.97) scaleX(0.99);
        opacity: 0.88;
    }

    50% {
        clip-path: polygon(38% 0%, 62% 0%, 83% 25%, 92% 55%, 80% 85%, 58% 100%, 42% 100%, 20% 85%, 8% 55%, 17% 25%);
        transform: scaleY(1.02) scaleX(0.97);
        opacity: 0.92;
    }

    75% {
        clip-path: polygon(39% 0%, 61% 0%, 81% 22%, 94% 51%, 83% 83%, 59% 100%, 41% 100%, 17% 83%, 6% 51%, 19% 22%);
        transform: scaleY(0.98) scaleX(0.98);
        opacity: 0.9;
    }
}

.ember-particles {
    position: absolute;
    width: 120%;
    height: 200%;
    top: -50%;
    left: -10%;
    pointer-events: none;
    z-index: 3;
}

.ember {
    position: absolute;
    background-color: rgba(255, 165, 0, 1);
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 100, 0, 0.9);
    animation: float-up 3s ease-out infinite;
}

    .ember.star {
        width: 6px;
        height: 6px;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        background-color: rgba(255, 200, 0, 0.95);
        box-shadow: 0 0 6px rgba(255, 200, 0, 0.9);
        animation-duration: 3.5s;
    }

    .ember.triangle {
        width: 5px;
        height: 5px;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background-color: rgba(255, 140, 0, 0.95);
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.9);
        animation-duration: 2.8s;
    }

    .ember.diamond {
        width: 5px;
        height: 5px;
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        background-color: rgba(255, 100, 0, 0.95);
        box-shadow: 0 0 5px rgba(255, 100, 0, 0.9);
    }

    .ember.circle {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: rgba(255, 180, 0, 0.95);
        box-shadow: 0 0 6px rgba(255, 180, 0, 0.9);
    }

    .ember.spark {
        width: 2px;
        height: 2px;
        border-radius: 50%;
        background-color: rgba(255, 255, 200, 0.95);
        box-shadow: 0 0 4px rgba(255, 255, 0, 0.9);
    }

    .ember:nth-child(1) {
        left: 45%;
        top: 50%;
        animation-delay: 0.2s;
        animation-duration: 2.5s;
        transform: rotate(15deg);
    }

    .ember:nth-child(2) {
        left: 55%;
        top: 40%;
        animation-delay: 0.8s;
        animation-duration: 2.8s;
        transform: rotate(45deg);
    }

    .ember:nth-child(3) {
        left: 48%;
        top: 30%;
        animation-delay: 1.5s;
        animation-duration: 2.3s;
        transform: rotate(30deg);
    }

    .ember:nth-child(4) {
        left: 58%;
        top: 60%;
        animation-delay: 0.5s;
        animation-duration: 3s;
        transform: rotate(60deg);
    }

    .ember:nth-child(5) {
        left: 35%;
        top: 55%;
        animation-delay: 0.3s;
        animation-duration: 2.7s;
        transform: rotate(10deg);
    }

    .ember:nth-child(6) {
        left: 62%;
        top: 45%;
        animation-delay: 1.2s;
        animation-duration: 3.2s;
        transform: rotate(75deg);
    }

    .ember:nth-child(7) {
        left: 40%;
        top: 35%;
        animation-delay: 0.7s;
        animation-duration: 2.9s;
        transform: rotate(20deg);
    }

    .ember:nth-child(8) {
        left: 50%;
        top: 25%;
        animation-delay: 1.8s;
        animation-duration: 2.6s;
        transform: rotate(40deg);
    }

    .ember:nth-child(9) {
        left: 43%;
        top: 45%;
        animation-delay: 0.4s;
        animation-duration: 2.2s;
        transform: rotate(25deg);
    }

    .ember:nth-child(10) {
        left: 53%;
        top: 35%;
        animation-delay: 1.0s;
        animation-duration: 2.4s;
        transform: rotate(50deg);
    }

    .ember:nth-child(11) {
        left: 60%;
        top: 30%;
        animation-delay: 1.6s;
        animation-duration: 2.7s;
        transform: rotate(35deg);
    }

    .ember:nth-child(12) {
        left: 38%;
        top: 42%;
        animation-delay: 0.9s;
        animation-duration: 3.1s;
        transform: rotate(15deg);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
        scale: 0.5;
    }

    10% {
        opacity: 1;
        scale: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(calc(12px * var(--drift, 1))) rotate(calc(var(--rotation, 1) * 360deg));
        opacity: 0;
        scale: 0.1;
    }
}

.title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.titleLogo {
    font-family: 'Rubik Glitch', Verdana, Geneva, Tahoma, sans-serif;
    font-size: 55px;
    font-weight: 100;
    color: transparent;
    background: linear-gradient(135deg, #ffcc00 0%, #ff8800 50%, #ff5500 100%);
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 2px;
    margin: 0;
    padding: 0 5px;
    text-shadow: 0 2px 10px rgba(255, 130, 0, 0.15);
    position: relative;
    animation: titleGlow 4s ease-in-out infinite;
}

    .titleLogo::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #840016, #c8102e, #ff4500);
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(200, 16, 46, 0.5);
        transform: scaleX(0);
        transform-origin: left;
        animation: drawLine 1.5s ease-in-out forwards;
    }

@keyframes drawLine {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.title-row .title-wrapper:nth-child(3) .titleLogo::after {
    background: linear-gradient(to left, #840016, #c8102e, #ff4500);
    transform-origin: right;
    animation: drawLineReverse 1.5s ease-in-out forwards;
}

@keyframes drawLineReverse {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.titleLogo:hover::after {
    background: linear-gradient(to right, #9b0020, #e81138, #ff6f00);
    box-shadow: 0 2px 6px rgba(255, 69, 0, 0.7);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.title-row .title-wrapper:nth-child(3) .titleLogo:hover::after {
    background: linear-gradient(to left, #9b0020, #e81138, #ff6f00);
}


@keyframes titleGlow {

    0%, 100% {
        text-shadow: 0 2px 10px rgba(255, 130, 0, 0.15);
    }

    50% {
        text-shadow: 0 2px 15px rgba(255, 150, 0, 0.25);
    }
}

.title-wrapper {
    position: relative;
}

.title-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(247, 113, 3, 0.954);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 220, 0, 0.8);
    pointer-events: none;
    opacity: 0;
    animation: sparkleFloat 3s ease-out infinite;
}

    .title-sparkle:nth-child(1) {
        top: 10px;
        left: 20%;
        animation-delay: 0.5s;
    }

    .title-sparkle:nth-child(2) {
        top: 15px;
        right: 25%;
        animation-delay: 1.2s;
    }

    .title-sparkle:nth-child(3) {
        bottom: 5px;
        left: 40%;
        animation-delay: 0.8s;
    }

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.2);
    }
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: transparent;
    z-index: 1;
    color: var(--text-color);
}

    .form-input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.form-label {
    position: absolute;
    left: 20px;
    top: 17px;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 5px;
    z-index: 2;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 15px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    z-index: 2;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: var(--transition);
}

    .password-toggle:hover {
        color: var(--primary-color);
    }

.eye-container {
    position: relative;
    width: 24px;
    height: 24px;
}

.eye-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

.eye-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.3s ease;
}

.password-toggle.active .eye-line {
    width: 0;
}

.password-toggle:not(.active) .eye-line {
    width: 30px;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

    .forgot-password a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 14px;
        position: relative;
        display: inline-block;
        transition: var(--transition);
        font-weight: 500;
    }

        .forgot-password a::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 1px;
            bottom: 0;
            left: 0;
            background-color: red;
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease;
        }

        .forgot-password a:hover {
            color: #b30035;
        }

            .forgot-password a:hover::after {
                transform: scaleX(1);
                transform-origin: bottom left;
            }

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #800020, #b30035);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; 
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

    .login-button::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        z-index: 1;
    }

    .login-button:hover::after {
        width: 300px; 
        height: 300px;
    }

    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(128, 0, 32, 0.3);
        letter-spacing: 5px;
    }

    .login-button:active {
        transform: translateY(-1px);
    }

@media (max-width: 480px) {
    .login-container {
        padding: 30px;
    }

    .form-input {
        padding: 12px 15px;
    }

    .form-label {
        left: 15px;
        top: 14px;
    }

    .login-header {
        margin-top: 30px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 20px;
    }
}

.backHome {
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(150, 15, 15);
    padding: 0.7rem 0.8rem 0.5rem 0.7rem;
    border-radius: 0 0 1.2rem 0;
    outline: 2px solid rgb(150, 15, 15);
    outline-offset: 4px;
    color: white;
    box-shadow: 0 0 3px black;
    transition: all 0.3s ease;
}

    .backHome:hover {
        text-shadow: 0 0 5px white;
        outline-offset: 8px;
        box-shadow: 0 0 7px #840016;
        color: white;
    }

.cf-turnstile-wrapper {
    border-radius: 8px;
    margin: 0 auto;
    overflow: hidden;
    width: fit-content;
}
.cf-turnstile {
    border: none !important;
    outline: none !important;
    margin: -10px;
}

.captchaInput {
    width: 100%;
    padding: 7px 10px 4px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: transparent;
    z-index: 1;
    color: var(--text-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.error-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid #dc2626;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-icon {
    font-size: 3.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #dc2626;
    font-family: 'Poppins', sans-serif;
}

.error-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.attempts-info, .countdown-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fef2f2;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
}

.attempts-remaining {
    color: #dc2626;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.countdown-text {
    color: #dc2626;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    font-family: 'Poppins', sans-serif;
}

    .action-button:hover {
        background: #991b1b;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }

    .action-button i {
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }

    .action-button:hover i {
        transform: scale(1.1);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .error-container {
        padding: 2rem;
        margin: 1rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .error-message {
        font-size: 0.9rem;
    }

    .action-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Form disabled state */
.login-form input:disabled,
.login-form button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}