/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Background com formas geométricas animadas usando as cores da marca (azul, laranja, branco) */
.login-modern-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dfe4ea 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Formas geométricas diagonais animadas - Laranja */
.login-modern-wrapper::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.85) 0%, rgba(255, 179, 102, 0.7) 100%);
    top: -200px;
    right: -100px;
    transform: rotate(45deg);
    animation: floatShape1 20s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    box-shadow: 0 20px 60px rgba(255, 159, 64, 0.3);
}

/* Formas geométricas diagonais animadas - Azul */
.login-modern-wrapper::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    background: linear-gradient(135deg, rgba(3, 31, 65, 0.9) 0%, rgba(112, 124, 210, 0.85) 100%);
    bottom: -250px;
    left: -150px;
    transform: rotate(-35deg);
    animation: floatShape2 25s ease-in-out infinite;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 20px 60px rgba(3, 31, 65, 0.4);
}

/* Forma geométrica adicional - Ciano/Azul Claro */
.login-modern-wrapper {
    &::before {
        z-index: 1;
    }

    &::after {
        z-index: 2;
    }
}

.login-modern-wrapper {
    position: relative;
}

.login-modern-wrapper>* {
    position: relative;
    z-index: 10;
}

/* Formas decorativas extras */
.login-modern-wrapper {
    /* Forma rosa */
    background-image: radial-gradient(circle at 85% 15%, rgba(255, 107, 161, 0.6) 0%, transparent 35%),
        /* Forma amarela */
        radial-gradient(circle at 15% 85%, rgba(255, 193, 7, 0.7) 0%, transparent 40%),
        /* Forma cyan */
        radial-gradient(circle at 70% 80%, rgba(0, 188, 212, 0.65) 0%, transparent 38%),
        /* Forma roxo/azul */
        radial-gradient(circle at 25% 20%, rgba(103, 58, 183, 0.55) 0%, transparent 42%),
        /* Base gradient */
        linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dfe4ea 100%);
}

@keyframes floatShape1 {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(-30px, 30px);
    }
}

@keyframes floatShape2 {

    0%,
    100% {
        transform: rotate(-35deg) translate(0, 0);
    }

    50% {
        transform: rotate(-35deg) translate(40px, -40px);
    }
}

/* Container com glass morphism mais pronunciado para contrastar com fundo colorido */
.login-modern-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 48px 40px;
    animation: slideInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo e Cabeçalho */
.login-logo-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

/* Logo com efeito glow sutil */
.login-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    padding: 18px;
    background: linear-gradient(135deg, #031f41 0%, #1a3a5c 50%, #2c5f8d 100%);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(3, 31, 65, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatGlow 4s ease-in-out infinite;
    position: relative;
}

/* Glow no logo usando cores da marca */
.login-logo::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(112, 124, 210, 0.5), rgba(255, 159, 64, 0.4));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(8px);
}

.login-logo:hover::before {
    opacity: 1;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #031f41;
    margin: 0;
    letter-spacing: -0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Alertas */
.login-alert {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 28px;
    animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-alert ul {
    margin: 0;
    padding-left: 20px;
}

.login-alert li {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Formulário */
.login-form {
    margin-top: 32px;
}

.login-input-group {
    margin-bottom: 24px;
    position: relative;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ícones com animação melhorada */
.login-input-icon {
    position: absolute;
    left: 20px;
    color: #707cd2;
    font-size: 18px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(112, 124, 210, 0.2));
}

/* Inputs com glow premium no foco */
.login-input {
    width: 100%;
    padding: 18px 20px 18px 56px;
    font-size: 15px;
    color: #1a1a1a;
    background: #f8f9fa;
    border: 2px solid rgba(112, 124, 210, 0.1);
    border-radius: 14px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.login-input:focus {
    background: #ffffff;
    border-color: #707cd2;
    box-shadow: 0 0 0 4px rgba(112, 124, 210, 0.12), 0 8px 24px rgba(112, 124, 210, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.login-input:focus+.login-input-icon {
    color: #031f41;
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(3, 31, 65, 0.3));
}

.login-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Botão premium com efeitos múltiplos */
.login-btn-wrapper {
    margin-top: 36px;
}

.login-btn {
    width: 100%;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #031f41 0%, #1a3a5c 50%, #2c5f8d 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(3, 31, 65, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.7s ease, height 0.7s ease;
}

.login-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(3, 31, 65, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.login-btn:hover::after {
    opacity: 1;
}

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(3, 31, 65, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
.login-footer {
    margin-top: 36px;
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.login-footer-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .login-modern-container {
        padding: 40px 32px;
        border-radius: 24px;
    }

    .login-logo {
        width: 76px;
        height: 76px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-input {
        padding: 16px 18px 16px 52px;
        font-size: 14px;
    }

    .login-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* Preloader premium */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #031f41 0%, #1a3a5c 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.lds-ripple {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Preloader com as cores da marca */
.lds-ripple .lds-pos {
    position: absolute;
    border: 4px solid #707cd2;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    box-shadow: 0 0 20px rgba(112, 124, 210, 0.5);
}

.lds-ripple .lds-pos:nth-child(2) {
    animation-delay: -0.5s;
    border-color: #ff9f40;
    box-shadow: 0 0 20px rgba(255, 159, 64, 0.5);
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}