@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #080812;
    min-height: 100vh;
    display: flex;
}

/* ── LADO ESQUERDO ── */
.left-panel {
    flex: 1;
    background: linear-gradient(145deg, #0d0d1f 0%, #111128 40%, #0a0a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(12,184,200,0.12) 0%, transparent 70%);
    top: -100px; left: -100px;
    pointer-events: none;
}

.left-panel::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,150,167,0.08) 0%, transparent 70%);
    bottom: 50px; right: -50px;
    pointer-events: none;
}

.brand-full {
    position: relative;
    z-index: 1;
}

.logo-wrap {
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(12,184,200,0.35);
    flex-shrink: 0;
    overflow: hidden;
}

.brand-text .name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.brand-text .tagline {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 1px;
}

.hero {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h2 span {
    background: linear-gradient(135deg, #0CB8C8, #26C6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.65;
    max-width: 340px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 34px; height: 34px;
    background: rgba(12,184,200,0.12);
    border: 1px solid rgba(12,184,200,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg { width: 16px; height: 16px; }

.feature-text {
    font-size: 0.85rem;
    color: #9ca3af;
}

.left-footer {
    font-size: 0.72rem;
    color: #374151;
    position: relative;
    z-index: 1;
}

/* ── LADO DIREITO ── */
.right-panel {
    width: 480px;
    flex-shrink: 0;
    background: #0f0f1e;
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 48px;
}

.form-header {
    width: 100%;
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.4px;
}

.form-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 6px;
}

/* Alertas */
.alert {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.alert svg { flex-shrink: 0; }

.alert-success {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.2);
    color: #86efac;
}

/* Campos */
.form-group {
    width: 100%;
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    width: 17px; height: 17px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    background: #080812;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px;
    padding: 12px 40px 12px 40px;
    color: #f3f4f6;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
    border-color: #0CB8C8;
    box-shadow: 0 0 0 3px rgba(12,184,200,0.15);
}

.input-wrap input::placeholder { color: #374151; }

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #4b5563;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.btn-toggle-pass:hover { color: #9ca3af; }
.btn-toggle-pass svg { width: 17px; height: 17px; }

/* Badge empresa */
.empresa-badge {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(12,184,200,0.08);
    border: 1px solid rgba(12,184,200,0.2);
    border-radius: 9px;
    padding: 9px 13px;
    margin-top: 8px;
}
.empresa-badge.visible { display: flex; }
.empresa-badge.error {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.25);
}
.empresa-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #0CB8C8;
    flex-shrink: 0;
}
.empresa-badge.error .empresa-dot { background: #f87171; }
.empresa-badge.visible:not(.error) .empresa-dot {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.empresa-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #67DEE8;
}
.empresa-badge.error .empresa-name { color: #fca5a5; }

/* Credenciais */
.credentials { display: none; }
.credentials.visible { display: block; }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    width: 100%;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.divider span {
    font-size: 0.72rem;
    color: #374151;
    white-space: nowrap;
}

/* Botão */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #0CB8C8 0%, #0096A7 100%);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(12,184,200,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(12,184,200,0.4); }
.btn-login:active { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.form-footer {
    margin-top: 28px;
    font-size: 0.75rem;
    color: #374151;
    text-align: center;
}

/* Responsivo */
@media (max-width: 900px) {
    .left-panel { display: none; }
    .right-panel { width: 100%; border-left: none; }
}
