/* CSS para tela de login do JAP - Design Ultra Moderno e Futurista */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    position: relative;
}

.login-container {
    height: 100vh;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    position: relative;
    backdrop-filter: blur(20px);
}

/* Efeito de partículas de fundo melhorado */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: background-shift 25s ease-in-out infinite;
    z-index: 0;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(59, 130, 246, 0.05) 25%, transparent 50%, rgba(16, 185, 129, 0.05) 75%, transparent 100%);
    animation: shimmer 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes background-shift {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: translateX(-15px) translateY(-10px) rotate(1deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(15px) translateY(-8px) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateX(-8px) translateY(12px) rotate(0.5deg);
        opacity: 0.85;
    }
}

@keyframes shimmer {
    0%, 100% { 
        transform: translateX(-100%) skewX(0deg);
        opacity: 0;
    }
    50% { 
        transform: translateX(100%) skewX(10deg);
        opacity: 1;
    }
}

/* Lado esquerdo - Formulário Ultra Moderno */
.login-form-side {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%),
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 3;
    position: relative;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(30px);
    animation: formSideGlow 8s ease-in-out infinite;
}

@keyframes formSideGlow {
    0%, 100% {
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(59, 130, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 30px 90px rgba(59, 130, 246, 0.15),
            0 0 0 1px rgba(59, 130, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo JAP na tela de login - Design Moderno */
.login-logo {
    text-align: center;
    margin-bottom: 50px;
}

.jap-logo-login {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 20px 30px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.jap-logo-login:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(59, 130, 246, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.15);
}

.crossed-arrows-login {
    position: relative;
    width: 65px;
    height: 65px;
    background: 
        linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        box-shadow: 
            0 4px 20px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 8px 30px rgba(59, 130, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Efeito de relâmpago de fundo */
.crossed-arrows-login::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.3) 20%, 
            rgba(59, 130, 246, 0.4) 40%, 
            rgba(255, 255, 255, 0.5) 50%, 
            rgba(16, 185, 129, 0.3) 60%, 
            rgba(255, 255, 255, 0.3) 80%, 
            transparent 100%);
    animation: lightningShine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes lightningShine {
    0%, 100% { 
        transform: translateX(-120%) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateX(-80%) rotate(5deg) scale(1.1);
    }
    50% { 
        transform: translateX(120%) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
        transform: translateX(150%) rotate(175deg) scale(1);
    }
}

/* Raios SVG realistas em formato de X */
.crossed-arrows-login .lightning {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

/* Raio principal - diagonal direita para cima */
.crossed-arrows-login .lightning-1 {
    transform: translate(-50%, -50%) rotate(45deg);
    animation: lightningPulse 2s ease-in-out infinite;
}

/* Raio secundário - diagonal esquerda para cima */
.crossed-arrows-login .lightning-2 {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: lightningPulse2 2s ease-in-out infinite 0.5s;
}

/* Animações dos paths dos raios */
.lightning-path {
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pathGlow 2s ease-in-out infinite;
}

.lightning-1 .lightning-path {
    stroke: #ffffff;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.8));
}

.lightning-2 .lightning-path {
    stroke: #94a3b8;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.8));
}

.lightning-arrow {
    animation: arrowGlow 2s ease-in-out infinite;
}

.lightning-1 .lightning-arrow {
    fill: #ffffff;
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.8));
}

.lightning-2 .lightning-arrow {
    fill: #94a3b8;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.8));
    animation-delay: 0.5s;
}



/* Indicadores de progresso melhorados */
.progress-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    animation: pulseProgress 2.5s ease-in-out infinite;
}

.progress-dot.top {
    top: 8px;
    right: 8px;
}

.progress-dot.bottom {
    bottom: 8px;
    left: 8px;
    background: #10b981;
    border: 2px solid #ffffff;
}

/* Animações dos raios realistas com crescimento */
@keyframes lightningPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(1.15) translateY(-5px);
        opacity: 0.85;
    }
    75% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
}

@keyframes pathGlow {
    0%, 100% {
        stroke-width: 2;
        opacity: 1;
    }
    50% {
        stroke-width: 3;
        opacity: 0.8;
    }
}

@keyframes arrowGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-2px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes zigzagGlow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3) drop-shadow(0 0 3px rgba(59, 130, 246, 0.8));
    }
}

/* Animação específica para o raio 2 */
@keyframes lightningPulse2 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.15) translateY(-5px);
        opacity: 0.85;
    }
    75% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
}

@keyframes pulseProgress {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    }
    50% { 
        transform: scale(1.4) translateY(-3px); 
        opacity: 0.9; 
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.8);
    }
}

.logo-text-login .jap-title-login {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header do login ultra moderno */
.login-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.login-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.1),
            0 0 30px rgba(59, 130, 246, 0.3);
    }
    50% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.1),
            0 0 40px rgba(59, 130, 246, 0.5);
    }
}

.login-subtitle {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        color: #3b82f6;
        text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
    }
    50% {
        color: #1d4ed8;
        text-shadow: 0 1px 2px rgba(29, 78, 216, 0.4);
    }
}

.login-tagline {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
    font-style: italic;
}

/* Formulário melhorado */
.login-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    z-index: 10;
    font-size: 18px;
    transition: all 0.3s ease;
}

.login-input {
    height: 65px;
    padding-left: 60px;
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 18px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)),
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.02) 0%, transparent 70%);
    color: #1e293b;
    font-weight: 500;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.login-input:focus {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)),
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 30px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: none;
    transform: translateY(-2px) scale(1.01);
}

.login-input:focus + .input-icon {
    color: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.login-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Opções do formulário melhoradas */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.form-check-label {
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-check-label:hover {
    color: #1e293b;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.forgot-password:hover::after {
    width: 100%;
}

/* Botão de login ultra moderno */
.btn-login {
    width: 100%;
    height: 65px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border: none;
    border-radius: 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-login::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 ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #3730a3 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Informação de segurança melhorada */
.security-info {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-top: 25px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.security-info i {
    margin-right: 8px;
    color: #3b82f6;
    animation: securityPulse 2s ease-in-out infinite;
}

@keyframes securityPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Lado direito - Boas-vindas com azul claro moderno */
.welcome-side {
    background: 
        linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #3730a3 75%, #312e81 100%),
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.8s ease-out 0.2s both;
    backdrop-filter: blur(20px);
}

.welcome-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(59, 130, 246, 0.1) 25%, transparent 50%, rgba(16, 185, 129, 0.1) 75%, transparent 100%);
    animation: welcomeShimmer 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes welcomeShimmer {
    0%, 100% { 
        transform: translateX(-100%) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: translateX(100%) rotate(5deg);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Círculos decorativos ultra modernos */
.decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 70%, transparent 100%);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.circle-1 {
    width: 280px;
    height: 280px;
    top: 5%;
    right: 5%;
    animation: floatGlow 12s ease-in-out infinite;
    border-color: rgba(59, 130, 246, 0.4);
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 8%;
    animation: floatGlow 15s ease-in-out infinite reverse;
    border-color: rgba(16, 185, 129, 0.4);
    background: 
        radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
}

.circle-3 {
    width: 140px;
    height: 140px;
    top: 40%;
    right: 12%;
    animation: floatGlow 18s ease-in-out infinite;
    border-color: rgba(245, 158, 11, 0.4);
    background: 
        radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 70%, transparent 100%);
}

@keyframes floatGlow {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    33% {
        transform: translateY(-20px) rotate(120deg) scale(1.05);
        box-shadow: 
            0 0 40px rgba(16, 185, 129, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    66% {
        transform: translateY(10px) rotate(240deg) scale(0.95);
        box-shadow: 
            0 0 30px rgba(245, 158, 11, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

/* Conteúdo de boas-vindas melhorado */
.welcome-content {
    text-align: center;
    color: white;
    z-index: 10;
    position: relative;
    padding: 50px;
}

/* Logo JAP grande no lado direito */
.welcome-logo {
    text-align: center;
    margin-bottom: 40px;
    z-index: 15;
    position: relative;
}

.jap-logo-welcome {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 30px 40px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1)),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 25px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    animation: welcomeLogoFloat 6s ease-in-out infinite;
}

.jap-logo-welcome:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

.crossed-arrows-welcome {
    position: relative;
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(29, 78, 216, 0.2) 100%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: welcomeLogoGlow 4s ease-in-out infinite;
}

@keyframes welcomeLogoGlow {
    0%, 100% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 255, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Raios da logo do lado direito */
.crossed-arrows-welcome .lightning {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

.crossed-arrows-welcome .lightning-1 {
    transform: translate(-50%, -50%) rotate(45deg);
    animation: welcomeLightningPulse 3s ease-in-out infinite;
}

.crossed-arrows-welcome .lightning-2 {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: welcomeLightningPulse 3s ease-in-out infinite 0.5s;
}

@keyframes welcomeLightningPulse {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.7;
    }
}

.logo-text-welcome .jap-title-welcome {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: welcomeTitleGlow 4s ease-in-out infinite;
}

@keyframes welcomeTitleGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.welcome-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 
        0 0 40px rgba(59, 130, 246, 0.6),
        0 0 80px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite;
    letter-spacing: -1px;
    z-index: 2;
    position: relative;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 40px rgba(59, 130, 246, 0.6),
            0 0 80px rgba(16, 185, 129, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    33% {
        text-shadow: 
            0 0 60px rgba(16, 185, 129, 0.7),
            0 0 100px rgba(59, 130, 246, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    66% { 
        text-shadow: 
            0 0 50px rgba(245, 158, 11, 0.6),
            0 0 90px rgba(59, 130, 246, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.welcome-description {
    font-size: 22px;
    margin-bottom: 70px;
    opacity: 0.95;
    line-height: 1.8;
    color: #e2e8f0;
    font-weight: 400;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 0, 0, 0.8);
    animation: descriptionFloat 6s ease-in-out infinite;
    z-index: 15;
    position: relative;
}

@keyframes descriptionFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.95;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Grid de funcionalidades melhorado */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 450px;
    margin: 0 auto;
    z-index: 15;
    position: relative;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 35px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-item:hover::before {
    left: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.feature-label {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-label {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Classes para responsividade */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Esconder logo do lado esquerdo no desktop */
@media (min-width: 992px) {
    .login-logo {
        display: none;
    }
}

/* Responsividade ultra melhorada */
@media (max-width: 991px) {
    .welcome-side {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .login-logo {
        display: block !important;
    }
    
    .login-form-side {
        padding: 40px 25px;
        background: 
            linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%),
            radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    }
    
    .welcome-title {
        font-size: 48px;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .login-title {
        font-size: 32px;
    }
    
    .login-subtitle {
        font-size: 18px;
    }
    
    .login-input {
        height: 60px;
    }
    
    .btn-login {
        height: 60px;
    }
}

@media (max-width: 576px) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .login-form-side {
        padding: 30px 20px;
    }
    
    .jap-logo-login {
        gap: 12px;
        padding: 15px 25px;
        transform: scale(0.9);
    }
    
    .crossed-arrows-login {
        width: 45px;
        height: 45px;
    }
    
    .logo-text-login .jap-title-login {
        font-size: 24px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 16px;
    }
    
    .login-tagline {
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .login-input {
        height: 55px;
        font-size: 15px;
        padding-left: 50px;
    }
    
    .btn-login {
        height: 55px;
        font-size: 16px;
    }
    
    .input-icon {
        font-size: 16px;
        left: 15px;
    }
    
    /* Logo menor no mobile */
    .jap-logo-welcome {
        gap: 15px;
        padding: 20px 25px;
        transform: scale(0.8);
    }
    
    .crossed-arrows-welcome {
        width: 60px;
        height: 60px;
    }
    
    .logo-text-welcome .jap-title-welcome {
        font-size: 32px;
    }
}

/* Estados de loading melhorados */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Efeitos de entrada para elementos */
.form-group {
    animation: fadeInUp 0.6s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-options { animation: fadeInUp 0.6s ease-out 0.3s both; }
.btn-login { animation: fadeInUp 0.6s ease-out 0.4s both; }
.security-info { animation: fadeInUp 0.6s ease-out 0.5s both; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorias para acessibilidade */
.login-input:focus,
.btn-login:focus,
.forgot-password:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Efeito de hover suave para todos os elementos interativos */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alertas de erro com tema claro */
.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.alert-danger i {
    color: #dc2626;
    margin-right: 8px;
}
