/* ============================================
   Controle de Chips V7 — Login
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; font-family: 'Inter', sans-serif; }

.login-container { display: flex; min-height: 100vh; overflow: hidden; }

/* Left */
.login-left {
    width: 50%;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-left-content { position: relative; z-index: 2; text-align: center; padding: 0 40px; }

.login-logo-text {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.login-system-name {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-top: 16px;
}
.login-by   { color: #8BACC7; font-size: 14px; margin-top: 8px; }
.login-desc { color: #6B8FAD; font-size: 14px; margin-top: 12px; line-height: 1.6; max-width: 360px; }

.login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    max-width: 480px;
}
.login-feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
}
.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.login-feature-icon.icon-chips    { background: rgba(45, 156, 219, 0.125); color: #2D9CDB; }
.login-feature-icon.icon-numeros  { background: rgba(39, 174, 96, 0.125);  color: #27AE60; }
.login-feature-icon.icon-trocas   { background: rgba(242, 153, 74, 0.125); color: #F2994A; }
.login-feature-icon.icon-historico{ background: rgba(155, 89, 182, 0.125); color: #9B59B6; }

.login-feature-title { color: white; font-size: 14px; font-weight: bold; }
.login-feature-desc  { color: #8BACC7; font-size: 11px; margin-top: 4px; }

/* Right */
.login-right {
    width: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-form-container { width: 440px; max-width: 90%; }

.login-title    { font-size: 28px; font-weight: bold; color: #333333; margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: #828282; margin-bottom: 32px; }

.login-form-group { margin-bottom: 20px; }
.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333333;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.login-input:focus {
    border-color: #2D9CDB;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #1E3A5F;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
}
.login-btn:hover { opacity: 0.9; }

.login-footer {
    position: absolute;
    bottom: 32px;
    text-align: center;
    font-size: 12px;
    color: #828282;
    width: 100%;
}

.login-error {
    background: #FDECEA;
    color: #EB5757;
    border: 1px solid #EB5757;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 0;
}
@keyframes float {
    0%   { transform: translateY(0) scale(1); opacity: 0.06; }
    50%  { transform: translateY(-200px) scale(1.1); opacity: 0.1; }
    100% { transform: translateY(-600px) scale(0.8); opacity: 0; }
}
.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; bottom: -80px; animation: float 12s ease-in-out infinite; }
.bubble:nth-child(2) { width: 120px; height: 120px; left: 25%; bottom: -120px; animation: float 16s ease-in-out infinite 2s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 45%; bottom: -60px; animation: float 10s ease-in-out infinite 4s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 65%; bottom: -100px; animation: float 14s ease-in-out infinite 1s; }
.bubble:nth-child(5) { width: 40px; height: 40px; left: 80%; bottom: -40px; animation: float 8s ease-in-out infinite 3s; }
.bubble:nth-child(6) { width: 90px; height: 90px; left: 15%; bottom: -90px; animation: float 18s ease-in-out infinite 5s; }
.bubble:nth-child(7) { width: 50px; height: 50px; left: 55%; bottom: -50px; animation: float 11s ease-in-out infinite 6s; }
.bubble:nth-child(8) { width: 70px; height: 70px; left: 35%; bottom: -70px; animation: float 20s ease-in-out infinite 3s; }

/* Auth card (install.php) */
.page-auth { background: #F5F7FA; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 440px;
    max-width: 95%;
}
.auth-card h1 { font-size: 22px; font-weight: 700; color: #1E3A5F; margin: 0 0 8px; }
.auth-card label { display: block; margin-bottom: 16px; font-size: 13px; color: #333; }
.auth-card label input { display: block; margin-top: 4px; width: 100%; padding: 10px 14px; border: 1px solid #E0E0E0; border-radius: 8px; font-size: 14px; outline: none; }
.auth-card label input:focus { border-color: #2D9CDB; box-shadow: 0 0 0 3px rgba(45,156,219,0.1); }
.auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    background: #1E3A5F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.alert.alert-ok   { background: #D4EDDA; color: #155724; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert.alert-erro { background: #F8D7DA; color: #721C24; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.muted.small { color: #828282; font-size: 12px; margin-top: 12px; }
