/* =============================================================================
   AURA SHIELD - Landing Page & Login Styles
   Design tecnologico, futurista, dark theme
   ============================================================================= */

/* -----------------------------------------------------------------------------
   VARIAVEIS CSS
   ----------------------------------------------------------------------------- */
:root {
    --landing-bg-dark: #0a0e17;
    --landing-bg-medium: #111827;
    --landing-accent-blue: #3b82f6;
    --landing-accent-green: #10b981;
    --landing-accent-cyan: #06b6d4;
    --landing-text-primary: #f1f5f9;
    --landing-text-secondary: #94a3b8;
    --landing-text-muted: #64748b;
    --landing-glow-blue: rgba(59, 130, 246, 0.5);
    --landing-glow-green: rgba(16, 185, 129, 0.5);
}

/* -----------------------------------------------------------------------------
   ANIMACOES
   ----------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--landing-glow-blue);
    }
    50% {
        box-shadow: 0 0 40px var(--landing-glow-blue), 0 0 60px var(--landing-glow-green);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -10px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(0, -20px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(-10px, -10px) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 0.1;
        stroke-dashoffset: 0;
    }
    50% {
        opacity: 0.4;
        stroke-dashoffset: 50;
    }
}

/* Animacao de mensagens fluindo para o centro */
@keyframes flow-to-center {
    0% {
        opacity: 0;
        transform: translate(var(--start-x), var(--start-y)) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate(var(--start-x), var(--start-y)) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
}

@keyframes receiver-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
        box-shadow: 0 0 20px var(--landing-glow-blue);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
        box-shadow: 0 0 40px var(--landing-glow-blue), 0 0 60px var(--landing-glow-green);
    }
}

/* -----------------------------------------------------------------------------
   LANDING PAGE
   ----------------------------------------------------------------------------- */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--landing-bg-dark) 0%, var(--landing-bg-medium) 50%, var(--landing-bg-dark) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, var(--landing-glow-blue) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, var(--landing-glow-green) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 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%3Cpath d='M0 50 L50 0 L100 50 L50 100 Z' fill='none' stroke='%233b82f620' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* -----------------------------------------------------------------------------
   MENSAGENS FLUTUANTES - Animacao de fluxo de dados
   ----------------------------------------------------------------------------- */
.messages-flow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-message {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: flow-to-center 8s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cores por plataforma */
.msg-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.msg-facebook {
    background: rgba(66, 103, 178, 0.15);
    color: #4267B2;
    box-shadow: 0 0 20px rgba(66, 103, 178, 0.3);
}

.msg-web {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.msg-generic {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.2);
}

.msg-data {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.msg-instagram {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
    color: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.3);
}

.msg-tiktok {
    background: rgba(0, 0, 0, 0.3);
    color: #00f2ea;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3), 0 0 15px rgba(255, 0, 80, 0.2);
    border: 1px solid rgba(255, 0, 80, 0.3);
}

/* Posicoes iniciais das mensagens */
.top-left { --start-x: -45vw; --start-y: -35vh; }
.top-right { --start-x: 45vw; --start-y: -35vh; }
.top-center { --start-x: 0; --start-y: -45vh; }
.bottom-left { --start-x: -45vw; --start-y: 35vh; }
.bottom-right { --start-x: 45vw; --start-y: 35vh; }
.bottom-center { --start-x: 0; --start-y: 45vh; }
.left-center { --start-x: -48vw; --start-y: 0; }
.right-center { --start-x: 48vw; --start-y: 0; }
.top-left-2 { --start-x: -35vw; --start-y: -40vh; }
.top-right-2 { --start-x: 35vw; --start-y: -40vh; }
.bottom-left-2 { --start-x: -35vw; --start-y: 40vh; }
.bottom-right-2 { --start-x: 35vw; --start-y: 40vh; }
.left-top { --start-x: -48vw; --start-y: -20vh; }
.right-bottom { --start-x: 48vw; --start-y: 20vh; }

/* Efeito receptor ao redor do shield */
.shield-receiver {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    animation: receiver-pulse 3s ease-in-out infinite;
    z-index: -1;
}

.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.landing-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* Logo Container */
.landing-logo-container {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.landing-icon {
    font-size: 80px;
    background: linear-gradient(135deg, var(--landing-accent-blue), var(--landing-accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--landing-glow-blue));
}

/* Mapa de Angola pequeno - destino dos baloes */
.angola-map-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0 35px 0;
}

.angola-map-small {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px var(--landing-glow-blue)) drop-shadow(0 0 40px var(--landing-glow-green));
    z-index: 2;
    position: relative;
}

.angola-receiver {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: receiver-pulse 2s ease-in-out infinite;
    z-index: 1;
}

.footer-icon {
    color: var(--landing-accent-green);
}

.footer-security-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-security {
    color: var(--landing-accent-green);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Titulos */
.landing-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-shadow: 0 0 40px var(--landing-glow-blue);
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--landing-accent-blue), var(--landing-accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--landing-accent-green), var(--landing-accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.5rem;
    color: var(--landing-text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.landing-description {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* CTA Button */
.landing-cta {
    margin-bottom: 50px;
}

.landing-button {
    padding: 16px 50px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, var(--landing-accent-blue), var(--landing-accent-green)) !important;
    border: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.landing-button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 40px var(--landing-glow-blue) !important;
}

.landing-button::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;
}

.landing-button:hover::before {
    left: 100%;
}

.pulse-animation {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Features */
.landing-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--landing-accent-blue);
}

.feature-icon {
    font-size: 1rem;
    color: var(--landing-accent-cyan);
}

.feature-text {
    font-size: 0.9rem;
    color: var(--landing-text-secondary);
    font-weight: 500;
}

/* Footer */
.landing-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
}

.footer-brand {
    color: var(--landing-accent-blue);
    font-weight: 600;
}

.footer-version {
    color: var(--landing-text-muted);
    font-size: 0.8rem;
}

.footer-separator {
    color: var(--landing-text-muted);
    margin: 0 5px;
}

.footer-year {
    color: var(--landing-text-muted);
    font-size: 0.8rem;
}

/* -----------------------------------------------------------------------------
   LOGIN PAGE
   ----------------------------------------------------------------------------- */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--landing-bg-dark) 0%, var(--landing-bg-medium) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 20%, var(--landing-glow-blue) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, var(--landing-glow-green) 0%, transparent 30%);
    pointer-events: none;
    opacity: 0.5;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
}

.login-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.login-logo {
    font-size: 50px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--landing-accent-blue), var(--landing-accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--landing-text-primary);
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
}

/* Form Styles */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    color: var(--landing-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login-form .input-group {
    position: relative;
}

.login-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--landing-text-muted);
    z-index: 10;
}

.login-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 14px 14px 45px !important;
    color: var(--landing-text-primary) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--landing-accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none !important;
}

.login-form .form-control::placeholder {
    color: var(--landing-text-muted) !important;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: linear-gradient(135deg, var(--landing-accent-blue), var(--landing-accent-green)) !important;
    border: none !important;
    border-radius: 12px !important;
    margin-top: 10px;
    transition: all 0.3s ease !important;
}

.login-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3) !important;
}

.login-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Remember me & Forgot password */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--landing-text-secondary);
    font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--landing-accent-blue);
}

.forgot-password {
    color: var(--landing-accent-blue);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--landing-accent-cyan);
    text-decoration: underline;
}

/* Error message */
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #f87171;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
}

.login-error i {
    font-size: 1.1rem;
}

/* Success message */
.login-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #34d399;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
}

/* Back to home */
.back-to-home {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-home a {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-to-home a:hover {
    color: var(--landing-text-primary);
}

/* -----------------------------------------------------------------------------
   RESET PASSWORD PAGE
   ----------------------------------------------------------------------------- */
.reset-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    color: var(--landing-text-primary) !important;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .landing-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .landing-icon {
        font-size: 60px;
    }

    .angola-map-small {
        width: 60px;
        height: 60px;
    }

    .angola-receiver {
        width: 80px;
        height: 80px;
    }

    .floating-message {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .landing-features {
        gap: 15px;
    }

    .feature-item {
        padding: 10px 15px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 10px;
    }

    .footer-security-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .login-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .landing-title {
        font-size: 2rem;
    }

    .landing-button {
        padding: 14px 35px !important;
        font-size: 1rem !important;
    }

    .angola-map-small {
        width: 50px;
        height: 50px;
    }

    .angola-receiver {
        width: 65px;
        height: 65px;
    }

    .floating-message {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
