/* === Login — LocalProtect === */

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
}

.login-page-wrapper {
    height: 100vh;
    width: 100vw;
    background-color: #F3F4F6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    max-height: 800px;
    background-color: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    overflow: hidden;
    margin: 20px;
}

/* === Coluna Esquerda (Formulário) === */
.left-column {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    position: relative;
}

.login-content {
    width: 100%;
    max-width: 400px;
    z-index: 2;
}

.login-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-title {
    color: #111827;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* === Inputs === */
.form-floating > .form-control {
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    border-radius: 12px;
    height: 58px;
    font-size: 1rem;
    padding-left: 1rem;
}

.form-floating > label {
    padding-left: 1rem;
    color: #9CA3AF;
}

.form-control:focus {
    background-color: #FFFFFF;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Botão Principal */
.btn-primary {
    background-color: #6366f1;
    border: none;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(99, 102, 241, 0.35);
}

.btn-primary:disabled {
    background-color: #9CA3AF;
    transform: none;
}

/* === Coluna Direita (Branding) === */
.right-column {
    flex: 1;
    background-image: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.right-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.right-column h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #FFFFFF, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.right-column p {
    color: #c7d2fe;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    text-align: left;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #e0e7ff;
    font-weight: 500;
}

.feature-list i {
    background-color: rgba(255,255,255,0.15);
    padding: 8px;
    border-radius: 50%;
    margin-right: 12px;
    color: #a5b4fc;
}

/* Animação de fundo */
.bg-cubes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-cubes li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px; height: 20px;
    background: rgba(255,255,255,0.05);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 4px;
}

.bg-cubes li:nth-child(1)  { left: 25%; width: 80px;  height: 80px;  animation-delay: 0s; }
.bg-cubes li:nth-child(2)  { left: 10%; width: 20px;  height: 20px;  animation-delay: 2s;  animation-duration: 12s; }
.bg-cubes li:nth-child(3)  { left: 70%; width: 20px;  height: 20px;  animation-delay: 4s; }
.bg-cubes li:nth-child(4)  { left: 40%; width: 60px;  height: 60px;  animation-delay: 0s;  animation-duration: 18s; }
.bg-cubes li:nth-child(5)  { left: 65%; width: 20px;  height: 20px;  animation-delay: 0s; }
.bg-cubes li:nth-child(6)  { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.bg-cubes li:nth-child(7)  { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.bg-cubes li:nth-child(8)  { left: 50%; width: 25px;  height: 25px;  animation-delay: 15s; animation-duration: 45s; }
.bg-cubes li:nth-child(9)  { left: 20%; width: 15px;  height: 15px;  animation-delay: 2s;  animation-duration: 35s; }
.bg-cubes li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s;  animation-duration: 11s; }

@keyframes animate {
    0%   { transform: translateY(0) rotate(0deg);      opacity: 1; border-radius: 4px; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column-reverse;
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
    .right-column  { padding: 3rem 2rem; min-height: 300px; }
    .left-column   { padding: 3rem 1.5rem; }
    .login-content { max-width: 100%; }
}
