@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Profissional (Dark Slate & Cyan) */
    --bg-color: #0f172a;
    --accent-color: #06b6d4; /* Cyan corporativo */
    --accent-hover: #0891b2;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    --focus-glow: rgba(6, 182, 212, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- FUNDO AMBIENTE --- */
.bg-glow {
    position: absolute;
    width: 120vw;
    height: 120vh;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    z-index: -2;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- CONTAINER & CARD --- */
.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Barra de destaque no topo */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.8;
}

/* --- ANIMAÇÃO DE ENTRADA --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- HEADER --- */
.login-header { text-align: center; margin-bottom: 2.5rem; }

.brand-logo img {
    height: 60px; /* Ajuste conforme seu logo */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
    margin-bottom: 1rem;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.version-badge {
    font-size: 0.6rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.app-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- INPUTS MODERNOS --- */
.input-group-modern {
    position: relative;
}

.form-control-modern {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 14px 14px 14px 45px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-control-modern::placeholder { color: transparent; /* Esconde placeholder nativo para usar label flutuante se quiser, ou remova isso */ }
.form-control-modern:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--focus-glow);
    background: rgba(15, 23, 42, 0.8);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
    pointer-events: none;
}

.form-control-modern:focus + .floating-label,
.form-control-modern:not(:placeholder-shown) + .floating-label {
    /* Se quiser label flutuante, descomente e ajuste. Aqui usei placeholder normal no HTML */
}

.form-control-modern:focus ~ .input-icon { color: var(--accent-color); }

/* Label Flutuante Simulado (Visual Clean) */
.floating-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.form-control-modern:focus ~ .floating-label,
.form-control-modern:not(:placeholder-shown) ~ .floating-label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--accent-color);
    background: var(--bg-color); /* Truque para cobrir a borda se necessário, ou transparente */
    background: #1e293b; /* Cor do card aproximada */
    padding: 0 6px;
    border-radius: 4px;
}

/* --- BOTÃO --- */
.btn-login {
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-login:active { transform: translateY(0); }

/* --- ALERTS --- */
.alert-custom {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- FOOTER --- */
.login-footer {
    margin-top: 3rem;
    text-align: center;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.tech-info {
    opacity: 0.6;
    font-family: monospace;
    letter-spacing: 0.5px;
}