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

:root {
    /* Cores atualizadas do DataSaaS */
    --primary: #137fec;
    --primary-dark: #1066be;
    --primary-light: #4199f0;
    --secondary: #137fec;
    --success: #10b981;
    --error: #ef4444;
    --text-primary: #ffffff; /* Ajustado para modo escuro como base */
    --text-secondary: #92adc9;
    --bg: #101922;
    --card-bg: #192633;
    --border: #324d67;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(19, 127, 236, 0.15);
}


body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 1;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px var(--shadow), 0 0 0 1px var(--border);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

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

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-primary);
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.1);
}

.input-wrapper input:focus + .input-icon {
    color: var(--primary);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.btn-signin {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-signin:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(19, 127, 236, 0.2);
}

.btn-signin:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s;
}

.btn-signin:hover .btn-icon {
    transform: translateX(4px);
}

/* Background Decoration com cores DataSaaS */
.background-decoration {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

/* Estilos para a Marca (Logo + Nome) acima do card */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px; /* Espaço entre a logo e o card */
    animation: fadeInDown 0.8s ease-out;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(19, 127, 236, 0.15); /* Azul translúcido */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Animação suave para a logo */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.circle-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.circle-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; }
.circle-3 { width: 250px; height: 250px; top: 50%; right: 10%; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.message.success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid var(--success); }
.message.error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid var(--error); }