:root {
    --bg-primary: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --brand-primary: #00A8FF;
    --brand-secondary: #0077CC;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.6);
    --font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* Adicionando um leve ruidinho no fundo para textura premium */
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 168, 255, 0.05) 0%, transparent 100%);
}

/* Bolhas / Orbes de luz para efeito 3D / Glassmorphism */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.6;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--brand-secondary);
    top: -150px;
    left: -150px;
    animation: float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--brand-primary);
    bottom: -100px;
    right: -100px;
    animation: float 14s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.15); }
}

/* Área central de Login */
.login-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    z-index: 1;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    overflow: hidden;
}

/* Efeito sutil no topo do card */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
}

.login-header {
    text-align: center;
}

.login-header h1 {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 0.2rem;
}

.form-group input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1.1rem;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1), inset 0 1px 3px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #FFF;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 10px 20px -5px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 168, 255, 0.6);
    background: linear-gradient(135deg, #00A8FF, #005fB0);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 168, 255, 0.3);
}

.error-msg {
    display: none;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 71, 87, 0.3);
    text-align: center;
    margin-bottom: 1rem;
}

.error-msg.active {
    display: block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Elementos de agência C4 */
.brand-logo-txt {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-txt span {
    color: var(--brand-primary);
}
