/* Drangon Theme - Vermelho e Preto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a0000 0%, #000000 50%, #330000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de fogo no fundo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    z-index: -2;
}

/* Partículas de fogo animadas */
.fire-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.fire-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ff4500, #ff0000);
    border-radius: 50%;
    animation: fireFloat 8s infinite linear;
}

@keyframes fireFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

.login-container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 
        0 20px 60px rgba(255, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4500, #ff0000);
    animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% {
        box-shadow: 0 0 10px #ff0000;
    }
    100% {
        box-shadow: 0 0 20px #ff4500, 0 0 30px #ff0000;
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff0000, #ff4500, #ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.8));
    }
}

.subtitle {
    color: #ff6666;
    font-size: 1rem;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffcccc;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

.form-input::placeholder {
    color: #ff9999;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6666;
    font-size: 1.1rem;
}

.input-with-icon {
    padding-left: 50px;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #ff0000 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.login-button::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.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 50%, #ff3333 100%);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.success-message {
    background: rgba(0, 255, 0, 0.2);
    color: #66ff66;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #ff9999;
    font-size: 0.85rem;
}

.secure-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.password-reset-section {
    margin-top: 25px;
}

.reset-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.reset-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 0, 0, 0.3);
}

.reset-divider span {
    background: rgba(0, 0, 0, 0.9);
    padding: 0 15px;
    color: #ff9999;
    font-size: 0.85rem;
}

.reset-button {
    width: 100%;
    background: transparent;
    color: #ff9999;
    border: 2px solid rgba(255, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-button:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ffcccc;
}

.form-button {
    width: 100%;
    background: linear-gradient(135deg, #ff4500 0%, #ff0000 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
}

.back-button {
    width: 100%;
    background: transparent;
    color: #ff9999;
    border: 2px solid rgba(255, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ffcccc;
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
    }

    .logo {
        font-size: 2rem;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação do dragão */
.dragon-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dragon-container.show {
    opacity: 1;
}

.dragon {
    width: 200px;
    height: 150px;
    position: relative;
    animation: dragonFloat 3s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.dragon-body {
    width: 120px;
    height: 80px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    border-radius: 50px 20px 50px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 0, 0.3),
        0 0 30px rgba(255, 0, 0, 0.5);
}

.dragon-head {
    width: 60px;
    height: 50px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    border-radius: 30px 30px 10px 10px;
    position: absolute;
    top: 20px;
    left: 20px;
    box-shadow: 
        inset 0 0 15px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.4);
}

.dragon-eye {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 20px;
    box-shadow: 0 0 10px #ff0000;
    animation: eyeBlink 4s infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

.dragon-mouth {
    width: 20px;
    height: 15px;
    background: #000000;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 30px;
    left: 25px;
}

.fire-breath {
    position: absolute;
    top: 35px;
    left: 45px;
    width: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff0000, #ff4500, #ffa500);
    border-radius: 0 10px 10px 0;
    animation: fireBreath 2s ease-in-out infinite;
    box-shadow: 0 0 20px #ff0000;
}

@keyframes fireBreath {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

.dragon-wing {
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    border-radius: 20px 5px 20px 5px;
    position: absolute;
    top: 30px;
    right: 10px;
    transform: rotate(-20deg);
    box-shadow: 
        inset 0 0 15px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.4);
    animation: wingFlap 1.5s ease-in-out infinite;
}

@keyframes wingFlap {
    0%, 100% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(-30deg);
    }
}

.dragon-tail {
    width: 30px;
    height: 20px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    border-radius: 15px 5px 15px 5px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: rotate(45deg);
    box-shadow: 
        inset 0 0 10px rgba(255, 0, 0, 0.3),
        0 0 15px rgba(255, 0, 0, 0.4);
    animation: tailWag 2s ease-in-out infinite;
}

@keyframes tailWag {
    0%, 100% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(60deg);
    }
}

/* Efeitos de fogo adicionais */
.fire-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fire-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff4500;
    border-radius: 50%;
    animation: sparkFly 1s ease-out infinite;
}

@keyframes sparkFly {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}
