/* ============================================
   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%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.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 */
.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%;
    animation: particles 15s ease infinite;
    z-index: 3;
}

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

/* 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;
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 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.05) rotate(2deg);
}

.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;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 168, 212, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 168, 212, 0.6));
    }
}

.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;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.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: 28px;
    position: relative;
}

.login-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.3px;
}

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

.login-input-icon {
    position: absolute;
    left: 18px;
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
}

.login-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 10;
    cursor: text;
    pointer-events: auto;
    touch-action: manipulation;
}

.login-input:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 135, 0.1);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(0, 102, 135, 0.1),
        0 8px 24px rgba(0, 102, 135, 0.2);
    z-index: 11;
    transform: translateY(-3px) scale(1.01);
}

.login-input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-button);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 12;
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.login-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

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

.login-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-button:hover::before {
    width: 300px;
    height: 300px;
}

.login-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 102, 135, 0.5),
        0 0 0 4px rgba(0, 168, 212, 0.2),
        var(--shadow-glow);
}

.login-button:active {
    transform: translateY(-2px) scale(1);
}

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

.login-button i {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.login-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

.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;
    transform: translateY(-2px);
}

.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;
    transform: translateY(-2px);
}

.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;
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.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),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 20px rgba(0, 168, 212, 0.2);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.login-app-float-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.login-app-float-button:hover::before {
    left: 100%;
}

.login-app-float-button:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 30px rgba(0, 168, 212, 0.4);
    background: rgba(255, 255, 255, 1);
}

.login-app-float-button i {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.login-app-float-button:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.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));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.login-app-float-button:hover .login-app-float-img {
    transform: scale(1.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;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.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;
}
