/* ========================================
   HOLK AUTO GESTOR+ - LOGIN CSS
   ======================================== */

/* Variáveis CSS */
:root {
    --primary-color: #25D366;
    --secondary-color: #075E54;
    --accent-color: #128C7E;
    --dark-bg: #0B141A;
    --light-bg: #f0f2f5;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --text-dark: #495057;
    --text-muted: #6c757d;
    --error-color: #721c24;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
}

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ========================================
   BACKGROUND ANIMADO
   ======================================== */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    backdrop-filter: blur(1px);
}

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

/* Efeito adicional para os círculos */
.circle:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 8s;
}

.circle:nth-child(3n) {
    animation-duration: 10s;
    animation-delay: -2s;
}

/* ========================================
   CONTAINER PRINCIPAL DE LOGIN
   ======================================== */

.login-container {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2rem auto;
    overflow-y: auto;
    max-height: 90vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container::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.7s ease;
    z-index: -1;
    border-radius: 20px;
}

.login-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px var(--shadow-medium),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

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

/* ========================================
   HEADER DA MARCA
   ======================================== */

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.brand-header h1,
.brand-header h2,
.brand-header h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.6));
    }
}

.brand-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.brand-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(37, 211, 102, 0.1);
}

.brand-header a:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--secondary-color);
}

/* ========================================
   LOGO DA MARCA
   ======================================== */

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset;
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

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

.brand-logo:hover::before {
    left: 100%;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% { 
        transform: translateY(-5px) rotate(5deg); 
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    }
}

.brand-logo i {
    color: white;
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.brand-logo:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* ========================================
   FORMULÁRIOS E INPUTS
   ======================================== */

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1rem;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(37, 211, 102, 0.15),
        0 4px 15px rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.input-group-text {
    background-color: #f8f9fa;
    border: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--primary-color);
}

.form-control {
    border: none;
    padding: 12px 15px;
    width: 100%;
    background-color: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.form-control:focus::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn-whatsapp {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    border: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp::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-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline-success {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.1);
}

.btn-outline-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-success:hover::before {
    left: 0;
}

.btn-outline-success:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* ========================================
   APP DOWNLOAD SECTION
   ======================================== */

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #DCDCDC 0%, #F0F0F0 100%);
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-badge:hover {
    background: linear-gradient(135deg, #CCCCCC 0%, #E0E0E0 100%);
    transform: translateY(-3px) scale(1.02);
    color: var(--dark-bg);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-badge i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.app-badge:hover i {
    transform: scale(1.2);
}

.app-download {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    position: relative;
}

.app-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--primary-color);
}

.app-download h6,
.app-download p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-muted);
}

/* ========================================
   ALERTAS E MENSAGENS DE ERRO
   ======================================== */

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.alert i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.alert-danger {
    color: var(--error-color);
    background-color: var(--error-bg);
    border-color: var(--error-border);
    box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1);
}

.expired-alert {
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
    border-color: var(--error-border);
    color: var(--error-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1); 
    }
    50% { 
        box-shadow: 0 8px 25px rgba(114, 28, 36, 0.2); 
    }
}

.error-alert {
    animation: shake 0.4s ease, fadeIn 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

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

/* ========================================
   WHATSAPP CHAT FLUTUANTE
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: whatsappFloat 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    border-radius: 15px;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 999;
    overflow: hidden;
    display: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chatSlideIn 0.3s ease;
}

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

.chat-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative;
}

.chat-header .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    background: linear-gradient(135deg, #E5DDD5 0%, #F0F0F0 100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d2dbdc' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.message {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: messageSlideIn 0.3s ease;
}

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

.message p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-footer {
    padding: 15px;
    background: rgba(240, 240, 240, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.chat-footer textarea {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 10px 15px;