/* Login split-screen estilo SaaS */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    padding: 1.5rem;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.login-form-side {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand img {
    max-height: 56px;
    margin-bottom: 0.5rem;
}

.login-brand .brand-icon {
    font-size: 3rem;
    color: var(--cor-primaria);
}

.login-brand h5 {
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0.5rem;
}

.login-form-side .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.login-input-group {
    position: relative;
}

.login-input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 4;
}

.login-input-group .form-control {
    padding-left: 42px;
    padding-right: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    height: 48px;
    background: #f9fafb;
}

.login-input-group .form-control:focus {
    background: #fff;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 15%, transparent);
}

.login-input-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    z-index: 4;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.btn-login-gradient {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-login-gradient:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-1px);
}

.login-welcome-side {
    flex: 1;
    background: linear-gradient(160deg, var(--cor-primaria) 0%, var(--cor-secundaria) 55%, #0f172a 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.login-welcome-side h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.login-welcome-side > p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.login-features li:last-child {
    border-bottom: none;
}

.login-features .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 440px;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    .login-welcome-side {
        padding: 2rem;
        order: -1;
    }
    .login-welcome-side h2 {
        font-size: 1.35rem;
    }
    .login-features {
        display: none;
    }
    .login-form-side {
        padding: 1.5rem;
    }
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}
