/* ============================================
   TELA DE LOGIN PREMIUM - BANHOSOFT
   Design Moderno e Impactante
   ============================================ */

/* Reset e Variáveis */
:root {
    --primary-color: #006687;
    --primary-dark: #00394d;
    --primary-light: #00a8d4;
    --primary-glow: rgba(0, 168, 212, 0.4);
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #006687 0%, #00a8d4 50%, #00394d 100%);
    --gradient-button: linear-gradient(135deg, #006687 0%, #00a8d4 100%);
    --shadow-glow: 0 0 30px rgba(0, 168, 212, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Container Principal */
.login-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0a1929;
    overflow: hidden;
}

/* Background com vídeo e efeitos */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: 0;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 212, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.login-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.85) contrast(1.05);
}

.login-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 135, 0.5) 0%, rgba(0, 57, 77, 0.6) 100%);
    z-index: 2;
}

/* Partículas decorativas - removida animação */
.login-background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 200%;
    z-index: 3;
}

/* Wrapper do conteúdo */
.login-content-wrapper {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    pointer-events: none;
}

.login-content-wrapper > * {
    pointer-events: auto;
}

/* Card de Login com Glassmorphism */
.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        var(--shadow-glow);
    padding: 48px 40px;
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

/* Header do Card */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.login-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 102, 135, 0.3));
    transition: transform 0.3s ease;
}

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

.login-title {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Alertas */
.login-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-alert span {
    flex: 1;
}

.login-alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
}

.login-alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #166534;
    border-color: rgba(16, 185, 129, 0.3);
}

.login-alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.login-alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

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

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

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

.login-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.2px;
}

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

.login-input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary-color);
    opacity: 1;
}

.login-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    cursor: text;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
}

/* Melhorar compatibilidade com autofill */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(248, 249, 250, 0.95) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-color: rgba(248, 249, 250, 0.95) !important;
    border-color: rgba(0, 102, 135, 0.35) !important;
}

.login-input:hover {
    border-color: rgba(0, 168, 212, 0.25);
    background: rgba(255, 255, 255, 0.8);
}

.login-input:focus {
    outline: none;
    border-color: rgba(0, 102, 135, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 102, 135, 0.06);
    z-index: 2;
}

.login-input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-button);
    border-radius: 2px;
    opacity: 0.8;
    transition: width 0.3s ease;
    z-index: 3;
}

.login-input-wrapper:focus-within .login-input-focus-line {
    width: 100%;
}

.login-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    font-size: 12px;
}

/* Botão de Login Premium */
.login-button {
    width: 100%;
    padding: 16px 28px;
    background: var(--gradient-button);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(0, 102, 135, 0.4);
    font-family: inherit;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-button:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 135, 0.5);
    opacity: 0.95;
}

.login-button:active {
    opacity: 0.9;
}

.login-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 135, 0.3), 0 4px 15px rgba(0, 102, 135, 0.4);
}

.login-button i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.login-button span {
    position: relative;
    z-index: 1;
}

/* Footer */
.login-footer {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.login-link-forgot {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    padding: 8px;
    border-radius: 8px;
}

.login-link-forgot:hover {
    color: var(--primary-dark);
    background: rgba(0, 102, 135, 0.05);
    text-decoration: none;
}

.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.login-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 0 16px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.login-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.login-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.login-footer-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 135, 0.05);
    text-decoration: none;
}

.login-footer-separator {
    color: var(--text-light);
    font-size: 13px;
}

/* Download do App Flutuante */
.login-app-download-float {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: none;
}

.login-app-float-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.login-app-float-button:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.login-app-float-button i {
    font-size: 24px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.login-app-float-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.login-app-float-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.login-app-float-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-app-float-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

/* Manutenção */
.login-maintenance {
    text-align: center;
    padding: 50px 30px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.login-maintenance i {
    font-size: 56px;
    color: var(--warning);
    margin-bottom: 24px;
}

.login-maintenance p {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.7;
    font-weight: 500;
}

.login-maintenance-team {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 24px;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 767px) {
    .login-container {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .login-logo img {
        max-width: 160px;
    }

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

    .login-subtitle {
        font-size: 14px;
    }

    .login-app-download-float {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
        padding-top: 30px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

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

    .login-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .login-logo img {
        max-width: 140px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .login-app-download-float {
        display: block;
    }

    .login-container {
        padding: 40px 20px;
    }
}

@media (max-width: 1200px) {
    .login-app-download-float {
        right: 20px;
    }
    
    .login-app-float-button {
        padding: 14px 20px;
        gap: 12px;
    }
    
    .login-app-float-img {
        height: 36px;
    }
}

/* Compatibilidade */
.telaLoginIndex-corpo,
.telaLoginIndex-noticia,
.telaLoginIndex-login,
.telaLoginConteudo {
    display: none;
}

.esconder-mobile,
.esconder-pc,
.destacar-mobile {
    display: none;
}

.login-links,
.login-link-item,
.login-link,
.login-contact {
    display: none;
}
