﻿:root {
    --power-primary: #0066cc;
    --power-secondary: #003d7a;
    --power-accent: #00a8ff;
    --power-dark: #001f3f;
    --power-light: #e8f4ff;
    --power-gradient: linear-gradient(135deg, #0066cc 0%, #003d7a 50%, #001f3f 100%);
}

.power-gradient {
    background: var(--power-gradient);
    position: relative;
    overflow: hidden;
}

    .power-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(0, 168, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

    .floating-shape:nth-child(1) {
        width: 120px;
        height: 120px;
        top: 20%;
        right: 10%;
        animation-delay: 0s;
    }

    .floating-shape:nth-child(2) {
        width: 80px;
        height: 80px;
        bottom: 30%;
        right: 20%;
        animation-delay: 2s;
    }

    .floating-shape:nth-child(3) {
        width: 60px;
        height: 60px;
        top: 60%;
        right: 5%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.logo-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.power-title {
    background: linear-gradient(45deg, #ffffff, #e8f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.power-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-container {
    max-width: 480px;
    margin: 0 auto;
}

.brand-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(0, 168, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.mobile-logo {
    display: none;
}

/* Utilities para z-index */
.z-index-1 {
    z-index: 1;
}

/* Responsividade */
@media (max-width: 991px) {
    .mobile-logo {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }

    .login-container {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 24px;
        padding: 2rem;
        margin: 1rem;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Ajustes para WebPixels CSS */
.p-8 {
    padding: 2rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.g-4 > * {
    padding: 0.5rem;
}

/* Garantir que o backdrop-filter funcione */
@supports (backdrop-filter: blur(10px)) {
    .logo-container,
    .feature-icon,
    .stats-card {
        backdrop-filter: blur(10px);
    }

    .login-container {
        backdrop-filter: blur(20px);
    }
}

/* Fallback para navegadores sem suporte ao backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .logo-container,
    .feature-icon,
    .stats-card {
        background: rgba(255, 255, 255, 0.2);
    }

    .login-container {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Estilização do formulário de login */
.login-container h1 {
    color: var(--power-primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-container p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Botão Microsoft estilizado */
.btn-primary {
    background: linear-gradient(135deg, var(--power-primary) 0%, var(--power-secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
}

    .btn-primary::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-primary:hover {
        background: linear-gradient(135deg, var(--power-secondary) 0%, var(--power-dark) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    }

        .btn-primary:hover::before {
            left: 100%;
        }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 102, 204, 0.4);
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
    }

    /* Ícone Microsoft */
    .btn-primary .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    .btn-primary svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Ajustes para o container do botão */
    .btn-primary.w-100 {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Correção para o texto do botão */
    .btn-primary span:not(.icon) {
        flex-grow: 1;
        text-align: center;
    }

/* Responsividade para o formulário */
@media (max-width: 991px) {
    .login-container h1 {
        font-size: 2rem;
    }

    .login-container p {
        font-size: 1rem;
    }
}

/* Ajustes para espaçamento */
.mb-12 {
    margin-bottom: 3rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Animação de entrada para o formulário */
.login-container {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilização adicional para links */
.text-primary {
    color: var(--power-primary) !important;
}

    .text-primary:hover {
        color: var(--power-secondary) !important;
    }

/* Ajustes para o grid */
.row.g-3 > * {
    padding: 0.75rem;
}

/* Ajustes específicos para o container do botão */
.col-sm-6 {
    min-width: 250px;
}

/* Garantir que o botão não seja cortado */
.login-container .row {
    margin-left: 0;
    margin-right: 0;
}

    .login-container .row > * {
        padding-left: 0;
        padding-right: 0;
    }

/* Hover effect para o container de login em mobile */
@media (max-width: 991px) {
    .login-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
}
