* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(125deg, #1a2a6c, #67e8ff, #da2dfd);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1a2a6c 0%, #121212 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.1);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00ffcc;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 255, 204, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.slogan {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.slogan:hover {
    opacity: 1;
}

.features {
    list-style: none;
    margin-top: 30px;
    z-index: 1;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 5px;
}

.features li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.features i {
    margin-right: 10px;
    color: #00ffcc;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.features li:hover i {
    transform: scale(1.2);
}

.right-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 28px;
    color: #1a2a6c;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.login-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #1a2a6c, #00ffcc);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.login-header h2:hover::after {
    width: 80px;
}

.login-header p {
    color: #666;
    transition: color 0.3s ease;
}

.login-header:hover p {
    color: #444;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: #1a2a6c;
}

.input-with-icon {
    position: relative;
}

/* Ícone do usuário (cadeado fica separado) */
.input-with-icon .fa-user {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a2a6c;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-with-icon .fa-lock {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a2a6c;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.input-with-icon input:focus {
    border-color: #1a2a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
    background-color: white;
    transform: translateY(-2px);
}

.input-with-icon input:focus + .fa-lock {
    color: #00ffcc;
    transform: translateY(-50%) scale(1.1);
}

/* CORREÇÃO PERFEITA DO OLHINHO */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 3;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-toggle i {
    font-size: 13px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.password-toggle:hover {
    color: #1a2a6c;
    background: rgba(26, 42, 108, 0.1);
    transform: translateY(-50%) scale(1.05);
    border-color: #1a2a6c;
}

.password-toggle.active {
    color: #1a2a6c;
    background: rgba(26, 42, 108, 0.15);
    border-color: #1a2a6c;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.remember {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.remember:hover {
    transform: scale(1.05);
}

.remember input {
    margin-right: 8px;
    accent-color: #1a2a6c;
    transform: scale(1.2);
    cursor: pointer;
}

.remember label {
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember:hover label {
    color: #1a2a6c;
}

.forgot-password {
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #1a2a6c, #00ffcc);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: #00a3ff;
}

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

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a2a6c, #2c3e99);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3);
    position: relative;
    overflow: hidden;
}

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

.login-btn:hover {
    background: linear-gradient(135deg, #2c3e99, #3b4cc5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 42, 108, 0.4);
}

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

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(26, 42, 108, 0.4);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
    border-left: 4px solid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.error {
    background-color: #ffebee;
    color: #d32f2f;
    border-color: #f44336;
}

.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #4caf50;
}

.users-list {
    margin-top: 30px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.users-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.users-list h3 {
    margin-bottom: 15px;
    color: #1a2a6c;
    text-align: center;
    transition: color 0.3s ease;
}

.users-list:hover h3 {
    color: #2c3e99;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.user-item:hover {
    background-color: #eeeeee;
    transform: translateX(5px);
    border-radius: 5px;
}

.user-item:last-child {
    border-bottom: none;
}

.user-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.user-item:hover .user-status {
    transform: scale(1.3);
}

.status-active {
    background-color: #4caf50;
}

.status-inactive {
    background-color: #f44336;
}

/* Efeito de partículas flutuantes */
.floating-particle {
    position: absolute;
    background: rgba(26, 42, 108, 0.05);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
    pointer-events: none;
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-1000%) rotate(360deg); opacity: 0; }
}

/* Media Queries para Responsividade */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }
    
    .left-panel, .right-panel {
        padding: 30px;
    }
    
    .left-panel {
        order: 2;
        text-align: center;
    }
    
    .right-panel {
        order: 1;
    }
    
    .features li {
        justify-content: center;
    }
    
    .features li:hover {
        transform: translateX(0);
        background: transparent;
        padding-left: 0;
    }
    
    .input-with-icon input {
        padding: 12px 45px 12px 40px;
    }
    
    .password-toggle {
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    .password-toggle i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
        display: block;
    }
    
    .container {
        width: 100%;
        border-radius: 15px;
        margin: 20px 0;
    }
    
    .left-panel, .right-panel {
        padding: 25px 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .slogan {
        font-size: 16px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .input-with-icon input {
        padding: 12px 40px 12px 35px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 8px;
        width: 28px;
        height: 28px;
    }
    
    .password-toggle i {
        font-size: 11px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 5px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .left-panel, .right-panel {
        padding: 20px 15px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .features li {
        font-size: 14px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .input-with-icon input {
        padding: 10px 35px 10px 30px;
        font-size: 14px;
    }
    
    .password-toggle {
        right: 6px;
        width: 26px;
        height: 26px;
    }
    
    .password-toggle i {
        font-size: 10px;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Foco visível para acessibilidade */
input:focus-visible, button:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
}